Sha256: aec817426009f1ee721e066cde9d4c68c708a4b47ca3b79dee332b6d0ce9a1e1

Contents?: true

Size: 591 Bytes

Versions: 26

Compression:

Stored size: 591 Bytes

Contents

describe Hamlit::Parser do
  describe 'comment' do
    it 'renders html comment' do
      assert_render(<<-HAML, <<-HTML)
        / comments
      HAML
        <!-- comments -->
      HTML
    end

    it 'strips html comment ignoring around spcaes' do
      assert_render('/   comments    ', <<-HTML)
        <!-- comments -->
      HTML
    end

    it 'ignores multiline comment' do
      assert_render(<<-'HAML', <<-HTML)
        -# if true
          - raise 'ng'
            = invalid script
                too deep indent
        ok
      HAML
        ok
      HTML
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hamlit-1.3.0 spec/hamlit/engine/comment_spec.rb
hamlit-1.2.1 spec/hamlit/engine/comment_spec.rb
hamlit-1.2.0 spec/hamlit/engine/comment_spec.rb
hamlit-1.1.1 spec/hamlit/engine/comment_spec.rb
hamlit-1.1.0 spec/hamlit/engine/comment_spec.rb
hamlit-1.0.0 spec/hamlit/engine/comment_spec.rb
hamlit-0.6.2 spec/hamlit/engine/comment_spec.rb
hamlit-0.6.1 spec/hamlit/engine/comment_spec.rb
hamlit-0.6.0 spec/hamlit/engine/comment_spec.rb
hamlit-0.5.3 spec/hamlit/engine/comment_spec.rb
hamlit-0.5.2 spec/hamlit/engine/comment_spec.rb
hamlit-0.5.1 spec/hamlit/engine/comment_spec.rb
hamlit-0.5.0 spec/hamlit/engine/comment_spec.rb
hamlit-0.4.3 spec/hamlit/engine/comment_spec.rb
hamlit-0.4.2 spec/hamlit/engine/comment_spec.rb
hamlit-0.4.1 spec/hamlit/engine/comment_spec.rb
hamlit-0.3.4 spec/hamlit/engine/comment_spec.rb
hamlit-0.3.3 spec/hamlit/engine/comment_spec.rb
hamlit-0.3.2 spec/hamlit/engine/comment_spec.rb
hamlit-0.3.1 spec/hamlit/engine/comment_spec.rb