spec/hamlit/engine/text_spec.rb in hamlit-1.5.9 vs spec/hamlit/engine/text_spec.rb in hamlit-1.6.0
- old
+ new
@@ -14,17 +14,21 @@
it 'renders . or # which is not continued by tag name' do
assert_render(<<-HAML, <<-HTML, compatible_only: [], error_with: :haml)
.
.*
+ ..
#
#+
+ ##
HAML
.
.*
+ ..
#
#+
+ ##
HTML
end
it 'escapes all operators by backslash' do
assert_render(<<-'HAML', <<-HTML)
@@ -110,18 +114,18 @@
<nyaa>
HTML
end
it 'renders !, & operator right before a non-space character' do
- assert_render(<<-'HAML', <<-'HTML', compatible_only: :faml)
+ assert_render(<<-'HAML', <<-'HTML', compatible_only: :haml)
\
!hello
\!hello
HAML
- nbsp;
- hello
+
+ !hello
!hello
HTML
end
it 'does not accept backslash operator' do