From 305fd70193cdf90c62c1307347d07e8fb5ac51ae Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Thu, 22 Dec 2016 15:49:44 +0100 Subject: [PATCH] send_file using disposition --- test/functional/dmsf_files_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/dmsf_files_controller_test.rb b/test/functional/dmsf_files_controller_test.rb index dc2c2620..9c070190 100644 --- a/test/functional/dmsf_files_controller_test.rb +++ b/test/functional/dmsf_files_controller_test.rb @@ -44,13 +44,13 @@ class DmsfFilesControllerTest < RedmineDmsf::Test::TestCase def test_show_file_ok # Permissions OK @role.add_permission! :view_dmsf_files - get :show, :id => @file.id, :download => '' - assert_response :missing # The file is not physically present. + get :show, :id => @file.id + assert_response :success end def test_show_file_forbidden # Missing permissions - get :show, :id => @file.id, :download => '' + get :show, :id => @file.id assert_response :forbidden end