mirror of
https://github.com/redmine/redmine.git
synced 2026-05-02 20:38:29 +02:00
Merged r14856 (#21155).
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14861 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -756,6 +756,18 @@ class WikiControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_destroy_invalid_version_should_respond_with_404
|
||||
@request.session[:user_id] = 2
|
||||
assert_no_difference 'WikiContent::Version.count' do
|
||||
assert_no_difference 'WikiContent.count' do
|
||||
assert_no_difference 'WikiPage.count' do
|
||||
delete :destroy_version, :project_id => 'ecookbook', :id => 'CookBook_documentation', :version => 99
|
||||
end
|
||||
end
|
||||
end
|
||||
assert_response 404
|
||||
end
|
||||
|
||||
def test_index
|
||||
get :index, :project_id => 'ecookbook'
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user