1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

Don't run test if Redcarpet is not available (#19313).

git-svn-id: http://svn.redmine.org/redmine/trunk@14106 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-03-15 10:09:17 +00:00
parent 07033fff2c
commit e920e951e7

View File

@ -160,6 +160,8 @@ RAW
end
def test_attached_images_with_markdown_and_non_ascii_filename
skip unless Object.const_defined?(:Redcarpet)
attachment = Attachment.generate!(:filename => 'café.jpg')
with_settings :text_formatting => 'markdown' do
assert_include %(<img src="/attachments/download/#{attachment.id}/caf%C3%A9.jpg" alt="">),