diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-30 18:50:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-30 18:50:04 +0000 |
commit | 2664693ae83b841aa8d0e7b2bf14da751dc1ce28 (patch) | |
tree | 1a0f4e771c906e4a733a7d76c2d911e929403882 /test/functional/wiki_controller_test.rb | |
parent | 3d27bf5318ef22d5d66e1863a62c3c6c1f203d66 (diff) | |
download | redmine-2664693ae83b841aa8d0e7b2bf14da751dc1ce28.tar.gz redmine-2664693ae83b841aa8d0e7b2bf14da751dc1ce28.zip |
Removed useless permission check in wiki controller.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8735 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 59b1a4319..2b3cc37fb 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -644,10 +644,12 @@ class WikiControllerTest < ActionController::TestCase assert @response.body.starts_with?('%PDF') end - def test_export_without_permission_should_redirect + def test_export_without_permission_should_be_denied + @request.session[:user_id] = 2 + Role.find_by_name('Manager').remove_permission! :export_wiki_pages get :export, :project_id => 'ecookbook' - assert_response 302 + assert_response 403 end def test_date_index |