Commit 041d360a authored by jplang's avatar jplang
Browse files

Adds a test for #24922.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f1a43fa2
...@@ -169,6 +169,12 @@ RAW ...@@ -169,6 +169,12 @@ RAW
end end
end end
def test_attached_images_with_hires_naming
attachment = Attachment.generate!(:filename => 'image@2x.png')
assert_equal %(<p><img src="/attachments/download/#{}/image@2x.png" srcset="/attachments/download/#{}/image@2x.png 2x" alt="" /></p>),
textilizable("!image@2x.png!", :attachments => [attachment])
def test_attached_images_filename_extension def test_attached_images_filename_extension
set_tmp_attachments_directory set_tmp_attachments_directory
a1 = a1 =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment