diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-12-23 17:07:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-12-23 17:07:51 +0000 |
commit | a657a12450621e5ed9d0627b9a33a42d9799db3b (patch) | |
tree | da2566c514702273488e4a85cac5fbc9b0f707dc /test/unit/lib | |
parent | 471e01ca5059f892888f78e2278dd41d742a4b75 (diff) | |
download | redmine-a657a12450621e5ed9d0627b9a33a42d9799db3b.tar.gz redmine-a657a12450621e5ed9d0627b9a33a42d9799db3b.zip |
Don't load redcarpet with JRuby.
git-svn-id: http://svn.redmine.org/redmine/trunk@12453 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/markdown_formatter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 '<p>This is a <a href="/issues">link</a></p>', @formatter.new(text).to_html.strip end + + end end |