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

We've already implemented this

This commit is contained in:
Takashi Kokubun 2015-10-25 23:33:36 +09:00
parent ed1c9edb37
commit 668391ae9f
2 changed files with 4 additions and 3 deletions

View file

@ -56,8 +56,7 @@ describe Hamlit::Engine do
end
it 'leaves empty spaces after backslash' do
skip
expect(render_string('\ a')).to eq(" a\n")
assert_render('\ a', " a\n", skip_unindent: true)
end
it 'renders spaced - properly' do

View file

@ -30,7 +30,9 @@ module RenderAssertion
options.delete(:compatible_only)
options.delete(:error_with)
options = { escape_html: true, ugly: true }.merge(options)
haml, html = haml.unindent, html.unindent
unless options.delete(:skip_unindent)
haml, html = haml.unindent, html.unindent
end
assert_equal html, render(haml, options)
end