diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-05 12:38:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-05 12:38:48 +0000 |
commit | c084ef509f114d0d32891fc58d45817e6e11fa4e (patch) | |
tree | 4f658caf8daa7437836b912981df024efb0f133a /test/functional/attachments_controller_test.rb | |
parent | 9dae5771bc8da2d43359931ea62138d8ed150902 (diff) | |
download | redmine-c084ef509f114d0d32891fc58d45817e6e11fa4e.tar.gz redmine-c084ef509f114d0d32891fc58d45817e6e11fa4e.zip |
Adds a few functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13718 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/attachments_controller_test.rb')
-rw-r--r-- | test/functional/attachments_controller_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index c1b27c64e..d0fde7c27 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -350,6 +350,11 @@ class AttachmentsControllerTest < ActionController::TestCase assert_response 404 end + def test_edit_invalid_object_should_return_404 + get :edit, :object_type => 'issues', :object_id => '999' + assert_response 404 + end + def test_edit_for_object_that_is_not_visible_should_return_403 get :edit, :object_type => 'issues', :object_id => '4' assert_response 403 |