spec/render/script_spec.rb in faml-0.2.16 vs spec/render/script_spec.rb in faml-0.3.0

- old
+ new

@@ -53,29 +53,6 @@ expect(render_string(<<HAML)).to eq("<p>&lt;script&gt;alert(1)&lt;/script&gt;</p>\n") - title = '<script>alert(1)</script>' %p= title HAML end - - it 'parses Ruby multiline' do - expect(render_string(<<HAML)).to eq("<div>\n<span>\n2+3i\n</span>\n</div>\n") -%div - %span - = Complex(2, -3) -HAML - end - - it 'parses == syntax' do - expect(render_string('== =#{1+2}hello')).to eq("=3hello\n") - end - - context 'without Ruby code' do - it 'raises error' do - expect { render_string('%span=') }.to raise_error(Faml::SyntaxError) - expect { render_string(<<HAML) }.to raise_error(Faml::SyntaxError) -%span - = -HAML - end - end end