]> source.dussan.org Git - redmine.git/commitdiff
Update failing test after hardbreaks enabled by default (#35754, #32424).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sun, 15 Aug 2021 05:57:57 +0000 (05:57 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sun, 15 Aug 2021 05:57:57 +0000 (05:57 +0000)
Patch by Go MAEDA.

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

test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb

index b92121c5548c18b32b27fb7af2308012bbfbdd81..d121d54251e08f22fac773148124a66df248a3cb 100644 (file)
@@ -36,8 +36,8 @@ class Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase
       assert_equal html, format("foo  \nbar")
     end
 
-    def test_should_ignore_soft_breaks
-      assert_equal "<p>foo\nbar</p>", format("foo\nbar")
+    def test_should_render_soft_breaks
+      assert_equal "<p>foo<br>\nbar</p>", format("foo\nbar")
     end
 
     def test_syntax_error_in_image_reference_should_not_raise_exception