Sha256: b32af8558c87c8e3bd5ee081c2587e501781b183226dc205a0df8db127a08f98
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'Haml comment rendering', type: :render do it 'renders nothing' do expect(render_string(<<HAML)).to eq("<div>\n<p>hello</p>\n<p>world</p>\n</div>\n") %div %p hello -# this should not be rendered %p world HAML end it 'parses empty comment' do expect(render_string(<<HAML)).to eq("<div>\n<p>hello</p>\n<p>world</p>\n</div>\n") %div %p hello -# %p world HAML end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faml-0.8.1 | spec/render/haml_comment_spec.rb |
faml-0.8.0 | spec/render/haml_comment_spec.rb |