mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-28 00:16:48 +09:00
Compare a table message's filtered html as markup
The filters can write the same table with or without newlines between its rows depending on which tests ran first in the process, so the exact string comparison failed under some seeds. main compares it as markup.
This commit is contained in:
1 parent
e4ef1785e8
commit
a67ecde390
1 file changed
+1
-1
@@ -172,7 +172,7 @@ class ContentFiltersTest < ActionView::TestCase
|
||||
|
||||
filtered = ContentFilters::TextMessagePresentationFilters.apply(message.body.body).to_html
|
||||
|
||||
assert_equal body, filtered
|
||||
assert_dom_equal body, filtered
|
||||
assert_match %r{<table>.*<th><p>Name</p></th>.*<td><p>Jason</p></td>}m, message_presentation(message)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user