]> source.dussan.org Git - redmine.git/commitdiff
Redcarpet not available with jruby (#19313).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Mar 2015 10:08:04 +0000 (10:08 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Mar 2015 10:08:04 +0000 (10:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14105 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index a551dcf9012fd2fd603dff206a82c8dc9f2886ef..9536ff55e3031c3c2f8fe0f03dd1e7e107ca5785 100644 (file)
@@ -165,6 +165,7 @@ RAW
     end
   end
 
+  if Object.const_defined?(:Redcarpet)
   def test_attached_images_with_markdown_and_non_ascii_filename
     attachment = Attachment.generate!(:filename => 'café.jpg')
     with_settings :text_formatting => 'markdown' do
@@ -172,6 +173,7 @@ RAW
         textilizable("![](café.jpg)", :attachments => [attachment])
     end
   end
+  end
 
   def test_attached_images_filename_extension
     set_tmp_attachments_directory