spec/render/silent_script_spec.rb in faml-0.3.6 vs spec/render/silent_script_spec.rb in faml-0.4.0

- old
+ new

@@ -82,9 +82,18 @@ it 'allows empty silent script body' do expect(render_string("%br\n-\n%br")).to eq("<br>\n<br>\n") end + it 'allows empty else body' do + expect(render_string(<<HAML)).to eq("ok\nfinish\n") +- if true + ok +- else +finish +HAML + end + it 'checks indent levels' do expect(render_string(<<HAML)).to eq("<span>hello</span>\n") - if true %span hello - if false