]> source.dussan.org Git - redmine.git/commitdiff
Don't run the test if Redcarpet is not available (#16236).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 21 Mar 2014 04:07:56 +0000 (04:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 21 Mar 2014 04:07:56 +0000 (04:07 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12997 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb

index b06936abcf8b3c8d2e7eacde36e54293f196d549..e0abe026e6cdc64cd2c31382eb8e40b33dc3d3e0 100644 (file)
@@ -1175,6 +1175,7 @@ RAW
     end
   end
 
+  if Object.const_defined?(:Redcarpet)
   def test_toc_with_markdown_formatting_should_be_parsed
     with_settings :text_formatting => 'markdown' do
       assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading'
@@ -1182,6 +1183,7 @@ RAW
       assert_select_in textilizable("{{>toc}}\n\n# Heading"), 'ul.toc.right li', :text => 'Heading'
     end
   end
+  end
 
   def test_section_edit_links
     raw = <<-RAW