From a657a12450621e5ed9d0627b9a33a42d9799db3b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 23 Dec 2013 17:07:51 +0000 Subject: Don't load redcarpet with JRuby. git-svn-id: http://svn.redmine.org/redmine/trunk@12453 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb index b7409a0bf..191b54ea7 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb @@ -20,6 +20,8 @@ require File.expand_path('../../../../../test_helper', __FILE__) class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase include ApplicationHelper + if Object.const_defined?(:Redcarpet) + def setup @formatter = Redmine::WikiFormatting::Markdown::Formatter end @@ -59,4 +61,6 @@ STR text = 'This is a [link](/issues)' assert_equal '

This is a link

', @formatter.new(text).to_html.strip end + + end end -- cgit v1.2.3