Project

General

Profile

Defect #31929 » fix_test.patch

Marius BĂLTEANU, 2019-08-20 20:32

View differences:

test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
@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)
......
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
    (1-1/1)