mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Adds a test for #24922.
git-svn-id: http://svn.redmine.org/redmine/trunk@16312 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
65804c34f3
commit
6ef7a0fc2d
@ -169,6 +169,12 @@ RAW
|
||||
end
|
||||
end
|
||||
|
||||
def test_attached_images_with_hires_naming
|
||||
attachment = Attachment.generate!(:filename => 'image@2x.png')
|
||||
assert_equal %(<p><img src="/attachments/download/#{attachment.id}/image@2x.png" srcset="/attachments/download/#{attachment.id}/image@2x.png 2x" alt="" /></p>),
|
||||
textilizable("!image@2x.png!", :attachments => [attachment])
|
||||
end
|
||||
|
||||
def test_attached_images_filename_extension
|
||||
set_tmp_attachments_directory
|
||||
a1 = Attachment.new(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user