send_file using disposition

This commit is contained in:
Karel Picman 2016-12-22 15:49:44 +01:00
parent 6649784062
commit 305fd70193

View File

@ -44,13 +44,13 @@ class DmsfFilesControllerTest < RedmineDmsf::Test::TestCase
def test_show_file_ok def test_show_file_ok
# Permissions OK # Permissions OK
@role.add_permission! :view_dmsf_files @role.add_permission! :view_dmsf_files
get :show, :id => @file.id, :download => '' get :show, :id => @file.id
assert_response :missing # The file is not physically present. assert_response :success
end end
def test_show_file_forbidden def test_show_file_forbidden
# Missing permissions # Missing permissions
get :show, :id => @file.id, :download => '' get :show, :id => @file.id
assert_response :forbidden assert_response :forbidden
end end