@@ -169,6 +169,12 RAW | |||||
169 | end |
|
169 | end | |
170 | end |
|
170 | end | |
171 |
|
171 | |||
|
172 | def test_attached_images_with_hires_naming | |||
|
173 | attachment = Attachment.generate!(:filename => 'image@2x.png') | |||
|
174 | assert_equal %(<p><img src="/attachments/download/#{attachment.id}/image@2x.png" srcset="/attachments/download/#{attachment.id}/image@2x.png 2x" alt="" /></p>), | |||
|
175 | textilizable("!image@2x.png!", :attachments => [attachment]) | |||
|
176 | end | |||
|
177 | ||||
172 | def test_attached_images_filename_extension |
|
178 | def test_attached_images_filename_extension | |
173 | set_tmp_attachments_directory |
|
179 | set_tmp_attachments_directory | |
174 | a1 = Attachment.new( |
|
180 | a1 = Attachment.new( |
General Comments 0
You need to be logged in to leave comments.
Login now