Defect #31929 » fix_test.patch
| test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb | ||
|---|---|---|
| 168 | 168 |
@formatter.new(text).update_section(3, replacement) |
| 169 | 169 |
end |
| 170 | 170 | |
| 171 |
def test_should_support_underlined_text |
|
| 172 |
text = 'This _text_ should be underlined' |
|
| 173 |
assert_equal '<p>This <u>text</u> should be underlined</p>', @formatter.new(text).to_html.strip |
|
| 174 |
end |
|
| 175 | ||
| 171 | 176 |
private |
| 172 | 177 | |
| 173 | 178 |
def assert_section_with_hash(expected, text, index) |
| ... | ... | |
| 178 | 183 |
assert_equal expected, result.first, "section content did not match" |
| 179 | 184 |
assert_equal Digest::MD5.hexdigest(expected), result.last, "section hash did not match" |
| 180 | 185 |
end |
| 181 | ||
| 182 |
def test_should_support_underlined_text |
|
| 183 |
text = 'This _text_ should be underlined' |
|
| 184 |
assert_equal '<p>This <u>text</u> should be underlined</p>', @formatter.new(text).to_html.strip |
|
| 185 |
end |
|
| 186 | 186 |
end |
| 187 | 187 |
end |