##// END OF EJS Templates
Don't run the test if Redcarpet is not available (#16236)....
Jean-Philippe Lang -
r12722:83ce5c168750
parent child
Show More
@@ -1175,6 +1175,7 RAW
1175 end
1175 end
1176 end
1176 end
1177
1177
1178 if Object.const_defined?(:Redcarpet)
1178 def test_toc_with_markdown_formatting_should_be_parsed
1179 def test_toc_with_markdown_formatting_should_be_parsed
1179 with_settings :text_formatting => 'markdown' do
1180 with_settings :text_formatting => 'markdown' do
1180 assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading'
1181 assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading'
@@ -1182,6 +1183,7 RAW
1182 assert_select_in textilizable("{{>toc}}\n\n# Heading"), 'ul.toc.right li', :text => 'Heading'
1183 assert_select_in textilizable("{{>toc}}\n\n# Heading"), 'ul.toc.right li', :text => 'Heading'
1183 end
1184 end
1184 end
1185 end
1186 end
1185
1187
1186 def test_section_edit_links
1188 def test_section_edit_links
1187 raw = <<-RAW
1189 raw = <<-RAW
General Comments 0
You need to be logged in to leave comments. Login now