Project

General

Profile

Patch #30347 ยป append_assert.patch

Yuichi HARADA, 2019-01-07 06:52

View differences:

test/unit/lib/redmine/wiki_formatting_test.rb
64 64
<p>link: <a class="external" href="https://www.redmine.org">https://www.redmine.org</a><br />
65 65
<a class="external" href="http://www.redmine.org">http://www.redmine.org</a></p>
66 66
EXPECTED
67
    
67

  
68
    assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '')
68 69
  end
69 70

  
70 71
  def test_supports_section_edit
71 72
    with_settings :text_formatting => 'textile' do
72 73
      assert_equal true, Redmine::WikiFormatting.supports_section_edit?
73 74
    end
74
    
75

  
75 76
    with_settings :text_formatting => '' do
76 77
      assert_equal false, Redmine::WikiFormatting.supports_section_edit?
77 78
    end
    (1-1/1)