spec/render/silent_script_spec.rb in faml-0.2.7 vs spec/render/silent_script_spec.rb in faml-0.2.8

- old
+ new

@@ -78,11 +78,11 @@ - else %span ne HAML end - it 'raises error if no Ruby code is given' do - expect { render_string('-') }.to raise_error(Faml::SyntaxError) + it 'allows empty silent script body' do + expect(render_string("%br\n-\n%br")).to eq("<br>\n<br>\n") end it 'checks indent levels' do expect(render_string(<<HAML)).to eq("<span>hello</span>\n") - if true