@@ -165,6 +165,7 RAW | |||||
165 | end |
|
165 | end | |
166 | end |
|
166 | end | |
167 |
|
167 | |||
|
168 | if Object.const_defined?(:Redcarpet) | |||
168 | def test_attached_images_with_markdown_and_non_ascii_filename |
|
169 | def test_attached_images_with_markdown_and_non_ascii_filename | |
169 | attachment = Attachment.generate!(:filename => 'café.jpg') |
|
170 | attachment = Attachment.generate!(:filename => 'café.jpg') | |
170 | with_settings :text_formatting => 'markdown' do |
|
171 | with_settings :text_formatting => 'markdown' do | |
@@ -172,6 +173,7 RAW | |||||
172 | textilizable("", :attachments => [attachment]) |
|
173 | textilizable("", :attachments => [attachment]) | |
173 | end |
|
174 | end | |
174 | end |
|
175 | end | |
|
176 | end | |||
175 |
|
177 | |||
176 | def test_attached_images_filename_extension |
|
178 | def test_attached_images_filename_extension | |
177 | set_tmp_attachments_directory |
|
179 | set_tmp_attachments_directory |
General Comments 0
You need to be logged in to leave comments.
Login now