spec/hamlit/engine/text_spec.rb in hamlit-1.4.5 vs spec/hamlit/engine/text_spec.rb in hamlit-1.4.6
- old
+ new
@@ -37,9 +37,37 @@
= 'a'
-
HTML
end
+ it 'renders == operator' do
+ assert_render(<<-'HAML', <<-HTML)
+ ===
+ == =
+ == <a>
+ == #{'<a>'}
+ HAML
+ =
+ =
+ <a>
+ <a>
+ HTML
+ end
+
+ it 'renders !== operator' do
+ assert_render(<<-'HAML', <<-HTML)
+ == #{'<a>'}
+ !== #{'<a>'}
+ !===
+ !== =
+ HAML
+ <a>
+ <a>
+ =
+ =
+ HTML
+ end
+
it 'leaves empty spaces after backslash' do
expect(render_string('\ a')).to eq(" a\n")
end
it 'renders ! operator' do