diff options
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 834e6b08b..4deae88c8 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -219,6 +219,11 @@ class AttachmentsControllerTest < ActionController::TestCase assert_response 403 end + def test_show_invalid_should_respond_with_404 + get :show, :id => 999 + assert_response 404 + end + def test_download_text_file get :download, :id => 4 assert_response :success |