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
+8 -1
View File
@@ -18,7 +18,7 @@
require File.expand_path('../../test_helper', __FILE__)
class ProjectsTest < ActionController::IntegrationTest
fixtures :projects, :users, :members
fixtures :projects, :users, :members, :enabled_modules
def test_archive_project
subproject = Project.find(1).children.first
@@ -41,4 +41,11 @@ class ProjectsTest < ActionController::IntegrationTest
get "projects/1"
assert_response :success
end
def test_modules_should_not_allow_get
assert_no_difference 'EnabledModule.count' do
get '/projects/1/modules', {:enabled_module_names => ['']}, credentials('jsmith')
assert_response :method_not_allowed
end
end
end