Sha256: d387283acbb2a5154f78522e6562225bcc37c4e54727b3cf0fb36c69860257fd

Contents?: true

Size: 720 Bytes

Versions: 38

Compression:

Stored size: 720 Bytes

Contents

describe Hamlit::Engine do
  describe 'multiline' do
    it 'joins multi-lines ending with pipe' do
      assert_render(<<-HAML, <<-HTML)
        a |
          b |
      HAML
        a b
      HTML
    end

    it 'renders multi lines' do
      assert_render(<<-HAML, <<-HTML)
        = 'a' +  |
             'b' + |
             'c' |
        'd'
      HAML
        abc
        'd'
      HTML
    end

    it 'accepts invalid indent' do
      assert_render(<<-HAML, <<-HTML)
        %span
          %div
            = '1' + |
        '2' |
          %div
            3
      HAML
        <span>
        <div>
        12
        </div>
        <div>
        3
        </div>
        </span>
      HTML
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
hamlit-1.5.3 spec/hamlit/engine/multiline_spec.rb
hamlit-1.5.2 spec/hamlit/engine/multiline_spec.rb
hamlit-1.5.1 spec/hamlit/engine/multiline_spec.rb
hamlit-1.5.0 spec/hamlit/engine/multiline_spec.rb
hamlit-1.4.7 spec/hamlit/engine/multiline_spec.rb
hamlit-1.4.6 spec/hamlit/engine/multiline_spec.rb
hamlit-1.4.5 spec/hamlit/engine/multiline_spec.rb
hamlit-1.4.3 spec/hamlit/engine/multiline_spec.rb
hamlit-1.4.2 spec/hamlit/engine/multiline_spec.rb
hamlit-1.4.1 spec/hamlit/engine/multiline_spec.rb
hamlit-1.3.2 spec/hamlit/engine/multiline_spec.rb
hamlit-1.3.1 spec/hamlit/engine/multiline_spec.rb
hamlit-1.3.0 spec/hamlit/engine/multiline_spec.rb
hamlit-1.2.1 spec/hamlit/engine/multiline_spec.rb
hamlit-1.2.0 spec/hamlit/engine/multiline_spec.rb
hamlit-1.1.1 spec/hamlit/engine/multiline_spec.rb
hamlit-1.1.0 spec/hamlit/engine/multiline_spec.rb
hamlit-1.0.0 spec/hamlit/engine/multiline_spec.rb
hamlit-0.6.2 spec/hamlit/engine/multiline_spec.rb
hamlit-0.6.1 spec/hamlit/engine/multiline_spec.rb