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:
parent
ed1c9edb37
commit
668391ae9f
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue