spec/render/multiline_spec.rb in faml-0.2.8 vs spec/render/multiline_spec.rb in faml-0.2.9
- old
+ new
@@ -41,6 +41,15 @@
expect(render_string(<<HAML)).to eq("<div bar='2' foo='1'></div>\n")
%div{foo: 1, |
bar: 2}
HAML
end
+
+ it "isn't enabled in filter" do
+ expect(render_string(<<HAML)).to eq("<script>\n hello |\n world |\n</script>\n4\n")
+:javascript
+ hello |
+ world |
+= __LINE__
+HAML
+ end
end