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

git-svn-id: http://svn.redmine.org/redmine/trunk@12997 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-03-21 04:07:56 +00:00
parent d50ec43dff
commit 83ce5c1687
1 changed files with 2 additions and 0 deletions

View File

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