summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb6
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