diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-03 15:09:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-03 15:09:20 +0000 |
commit | b3866b05c14bd0f1fff4c54051f522e03e2bec36 (patch) | |
tree | c7248ef2b6cd4d22ec7bfaae11cf6815afdc8f64 /test/integration/projects_test.rb | |
parent | bf8f8545461e5aeb1d2b1ddc1b4bf861ee5c2f9c (diff) | |
download | redmine-b3866b05c14bd0f1fff4c54051f522e03e2bec36.tar.gz redmine-b3866b05c14bd0f1fff4c54051f522e03e2bec36.zip |
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
Diffstat (limited to 'test/integration/projects_test.rb')
-rw-r--r-- | test/integration/projects_test.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/integration/projects_test.rb b/test/integration/projects_test.rb index 890250c8a..1abe6ad96 100644 --- a/test/integration/projects_test.rb +++ b/test/integration/projects_test.rb @@ -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 |