send_file using disposition
This commit is contained in:
parent
6649784062
commit
305fd70193
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user