Sha256: cf469784c470664d8300051d58f34f87e45a001348f8f0625248b174c1c39ead

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

describe Hamlit::Engine do
  describe 'tab indent' do
    it 'accepts tab indentation' do
      assert_render(<<-HAML, <<-HTML, compatible_only: :haml)
        %p
        \t%a
      HAML
        <p>
        <a></a>
        </p>
      HTML
    end

    it 'accepts N-space indentation' do
      assert_render(<<-HAML, <<-HTML)
        %p
           %span
              foo
      HAML
        <p>
        <span>
        foo
        </span>
        </p>
      HTML
    end

    it 'accepts N-tab indentation' do
      assert_render(<<-HAML, <<-HTML, compatible_only: :haml)
        %p
        \t%span
        \t\tfoo
      HAML
        <p>
        <span>
        foo
        </span>
        </p>
      HTML
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hamlit-1.6.1 spec/hamlit/engine/indent_spec.rb