mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
Removes all #verify calls in controllers. Verification is handled at routing level now that the default route is removed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9061 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -289,13 +289,6 @@ class UsersControllerTest < ActionController::TestCase
|
||||
assert_nil User.find_by_id(2)
|
||||
end
|
||||
|
||||
def test_destroy_should_not_accept_get_requests
|
||||
assert_no_difference 'User.count' do
|
||||
get :destroy, :id => 2
|
||||
end
|
||||
assert_response 405
|
||||
end
|
||||
|
||||
def test_destroy_should_be_denied_for_non_admin_users
|
||||
@request.session[:user_id] = 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user