spec/render/script_spec.rb in fast_haml-0.1.5 vs spec/render/script_spec.rb in fast_haml-0.1.6

- old
+ new

@@ -32,9 +32,16 @@ 3 = 4 + 5 # comment HAML end + it 'can be comment-only' do + expect(render_string(<<HAML)).to eq("\nstring\n") += # comment += 'string' +HAML + end + it 'can have children' do expect(render_string(<<HAML)).to eq("<span>0</span>\n1<span>end</span>\n") = 1.times do |i| %span= i %span end