Preview files by default instead of downloading them (#25988).

Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16665 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-06-17 07:28:10 +00:00
parent ef754487c3
commit b21af3eaa4
2 changed files with 3 additions and 3 deletions

View File

@@ -82,10 +82,10 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
assert_equal 1, link.size
assert_equal "testfile.txt", link.text
# download the attachment
# preview the attachment
get link.attr('href')
assert_response :success
assert_equal "text/plain", response.content_type
assert_template :file
end
def test_create_without_attachment