diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-17 07:28:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-17 07:28:10 +0000 |
commit | b21af3eaa4363b5faa29d2bbdf450bca93104cfd (patch) | |
tree | 055186b0f3c3a37d6f6946cc5ca5377539083d11 /test/integration | |
parent | ef754487c3288e4d3f0ee7f28038d00b12840bea (diff) | |
download | redmine-b21af3eaa4363b5faa29d2bbdf450bca93104cfd.tar.gz redmine-b21af3eaa4363b5faa29d2bbdf450bca93104cfd.zip |
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
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/lib/redmine/field_format/attachment_format_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb index d0debbb9f..bb1944388 100644 --- a/test/integration/lib/redmine/field_format/attachment_format_test.rb +++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb @@ -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 |