spec/hamlit/engine/silent_script_spec.rb in hamlit-1.5.3 vs spec/hamlit/engine/silent_script_spec.rb in hamlit-1.5.4

- old
+ new

@@ -75,22 +75,22 @@ </span> HTML end it 'renders empty elsif statement' do - assert_render(<<-'HAML', <<-HTML) + assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml) %span - if false - elsif false HAML <span> </span> HTML end it 'renders empty else statement' do - assert_render(<<-'HAML', <<-HTML) + assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml) %span - if false ng - else HAML @@ -98,11 +98,11 @@ </span> HTML end it 'renders empty when statement' do - assert_render(<<-'HAML', <<-HTML) + assert_render(<<-'HAML', <<-HTML, compatible_only: :haml, error_with: :faml) %span - case - when false HAML <span> @@ -186,10 +186,10 @@ hello HTML end it 'joins a next line if a current line ends with ","' do - assert_render("- foo = [', \n ']\n= foo", <<-HTML) + assert_render("- foo = [', \n ']\n= foo", <<-HTML, compatible_only: :haml) [&quot;, &quot;] HTML end it 'accepts illegal indent in continuing code' do