summaryrefslogtreecommitdiffstats
path: root/test/unit/attachment_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-07-02 02:36:22 +0000
committerGo MAEDA <maeda@farend.jp>2018-07-02 02:36:22 +0000
commit51fdc31e1c4943895a25eed89dc0e9c3dc4e5a88 (patch)
treeb727206e1909dccaee05dd83df6be1a3ce649197 /test/unit/attachment_test.rb
parentef864bed28e5ce09c1bc43ecb414c96a7e4a3996 (diff)
downloadredmine-51fdc31e1c4943895a25eed89dc0e9c3dc4e5a88.tar.gz
redmine-51fdc31e1c4943895a25eed89dc0e9c3dc4e5a88.zip
"thumbnail" macro may break filename attribute of the attachment (#29038).
Patch by Toru Takahashi. git-svn-id: http://svn.redmine.org/redmine/trunk@17428 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r--test/unit/attachment_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index dcad6f23d..2bee67ed2 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -258,6 +258,7 @@ class AttachmentTest < ActiveSupport::TestCase
a = Attachment.new(:filename => "test.png", :description => "Cool image")
assert_equal "test.png (Cool image)", a.title
+ assert_equal "test.png", a.filename
end
def test_new_attachment_should_be_editable_by_author