diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 04:07:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 04:07:56 +0000 |
commit | 83ce5c168750c7e4843ac093db0af17b0f45ca80 (patch) | |
tree | 0af8a660c3285486488b0902d768622995073aa3 | |
parent | d50ec43dffcd37b66225c0847110a25291cdcd83 (diff) | |
download | redmine-83ce5c168750c7e4843ac093db0af17b0f45ca80.tar.gz redmine-83ce5c168750c7e4843ac093db0af17b0f45ca80.zip |
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
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index b06936abc..e0abe026e 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -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 |