diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-30 15:49:44 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-30 15:49:44 +0000 |
commit | 4fba0c524018cb36a543a1221c1f33c35727412c (patch) | |
tree | 32da5283410bd5ba08d7fb5592a9b3179b6af9ae /test/unit/lib | |
parent | 3788d6365c0f9a044fd6b5b7414600027b5a891e (diff) | |
download | redmine-4fba0c524018cb36a543a1221c1f33c35727412c.tar.gz redmine-4fba0c524018cb36a543a1221c1f33c35727412c.zip |
use "skip" instead of "if statement" whether Redcarpet is installed at markdown_formatter_test
git-svn-id: http://svn.redmine.org/redmine/trunk@20531 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb index 40be18646..b3c53acca 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb @@ -20,9 +20,10 @@ require File.expand_path('../../../../../test_helper', __FILE__) class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase - if Object.const_defined?(:Redcarpet) - def setup + unless Object.const_defined?(:Redcarpet) + skip "Redcarpet is not installed" + end @formatter = Redmine::WikiFormatting::Markdown::Formatter end @@ -194,5 +195,4 @@ class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase assert_equal expected, result.first, "section content did not match" assert_equal Digest::MD5.hexdigest(expected), result.last, "section hash did not match" end - end end |