@@ -160,6 +160,8 RAW | |||||
160 | end |
|
160 | end | |
161 |
|
161 | |||
162 | def test_attached_images_with_markdown_and_non_ascii_filename |
|
162 | def test_attached_images_with_markdown_and_non_ascii_filename | |
|
163 | skip unless Object.const_defined?(:Redcarpet) | |||
|
164 | ||||
163 | attachment = Attachment.generate!(:filename => 'café.jpg') |
|
165 | attachment = Attachment.generate!(:filename => 'café.jpg') | |
164 | with_settings :text_formatting => 'markdown' do |
|
166 | with_settings :text_formatting => 'markdown' do | |
165 | assert_include %(<img src="/attachments/download/#{attachment.id}/caf%C3%A9.jpg" alt="">), |
|
167 | assert_include %(<img src="/attachments/download/#{attachment.id}/caf%C3%A9.jpg" alt="">), |
General Comments 0
You need to be logged in to leave comments.
Login now