1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Diff should be inverted

This commit is contained in:
Takashi Kokubun 2015-10-24 22:18:12 +09:00
parent a2bb715d8d
commit b5939a3568

View file

@ -31,7 +31,7 @@ module RenderAssertion
options.delete(:error_with)
options = { escape_html: true, ugly: true}.merge(options)
haml, html = haml.unindent, html.unindent
assert_equal render(haml, options), html
assert_equal html, render(haml, options)
end
def render(text, options = {}, base = nil, &block)