]> source.dussan.org Git - redmine.git/commitdiff
MarkdownFormatterTest#test_should_support_underlined_text is declared as private...
authorGo MAEDA <maeda@farend.jp>
Wed, 21 Aug 2019 00:31:54 +0000 (00:31 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 21 Aug 2019 00:31:54 +0000 (00:31 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18381 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb

index cf06c7cdecb304390ff0a1a82939e4a25a7b980f..465bb47115353e7b0e1a7c102840e5a34dd4f1ae 100644 (file)
@@ -168,6 +168,11 @@ Nulla nunc nisi, egestas in ornare vel, posuere ac libero."]
       @formatter.new(text).update_section(3, replacement)
   end
 
+  def test_should_support_underlined_text
+    text = 'This _text_ should be underlined'
+    assert_equal '<p>This <u>text</u> should be underlined</p>', @formatter.new(text).to_html.strip
+  end
+
   private
 
   def assert_section_with_hash(expected, text, index)
@@ -178,10 +183,5 @@ Nulla nunc nisi, egestas in ornare vel, posuere ac libero."]
     assert_equal expected, result.first, "section content did not match"
     assert_equal Digest::MD5.hexdigest(expected), result.last, "section hash did not match"
   end
-
-  def test_should_support_underlined_text
-    text = 'This _text_ should be underlined'
-    assert_equal '<p>This <u>text</u> should be underlined</p>', @formatter.new(text).to_html.strip
-  end
   end
 end