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:
Jean-Philippe Lang
2012-03-03 15:09:20 +00:00
parent bf8f854546
commit b3866b05c1
28 changed files with 56 additions and 98 deletions
+19
View File
@@ -206,4 +206,23 @@ class IssuesTest < ActionController::IntegrationTest
}
}
end
def test_update_using_invalid_http_verbs
subject = 'Updated by an invalid http verb'
get '/issues/update/1', {:issue => {:subject => subject}}, credentials('jsmith')
assert_response 404
assert_not_equal subject, Issue.find(1).subject
post '/issues/1', {:issue => {:subject => subject}}, credentials('jsmith')
assert_response 405
assert_not_equal subject, Issue.find(1).subject
end
def test_get_watch_should_be_invalid
assert_no_difference 'Watcher.count' do
get '/watchers/watch?object_type=issue&object_id=1', {}, credentials('jsmith')
assert_response 405
end
end
end