- 'test/integration/api_test/wiki_pages_test.rb'
- 'test/test_helper.rb'
- 'test/unit/changeset_test.rb'
- - 'test/unit/lib/redmine/wiki_formatting/html_parser_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
end
def test_convert_line_breaks
- assert_equal "A html snippet with\na new line.",
+ assert_equal(
+ "A html snippet with\na new line.",
@parser.to_text('<p>A html snippet with<br>a new line.</p>')
+ )
end
def test_should_remove_style_tags_from_body
- assert_equal "Text",
+ assert_equal(
+ "Text",
@parser.to_text('<html><body><style>body {font-size: 0.8em;}</style>Text</body></html>')
+ )
end
def test_should_remove_preceding_whitespaces
</tr>
</table>
HTML
-
- assert_equal "th1\n\nth2\n\ntd1\n\ntd2",
+ assert_equal(
+ "th1\n\nth2\n\ntd1\n\ntd2",
@parser.to_text(str)
+ )
end
end