Skip to content

Commit 3fd5183

Browse files
committed
Beautify HTML in test failures to make it easier to see diff
1 parent bec939c commit 3fd5183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def assert_equivalent_html(expected, actual)
7979
assert equivalent, lambda {
8080
# using a lambda because diffing is expensive
8181
Diffy::Diff.new(
82-
expected_html.to_html(indent: 2),
83-
actual_html.to_html(indent: 2)
82+
HtmlBeautifier.beautify(expected_html.to_html(indent: 2)),
83+
HtmlBeautifier.beautify(actual_html.to_html(indent: 2))
8484
).to_s(:color)
8585
}
8686
end

0 commit comments

Comments
 (0)