Sha256: d27ba0d93a2068558088d11a79396ebb56b25a2819eaea4f00a2b051c9ab5c3a

Contents?: true

Size: 760 Bytes

Versions: 9

Compression:

Stored size: 760 Bytes

Contents

describe Hamlit::Engine do
  describe 'tab indent' do
    it 'accepts tab indentation' do
      assert_render(<<-HAML, <<-HTML, compatible_only: :haml, error_with: :faml)
        %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, error_with: :faml)
        %p
        \t%span
        \t\tfoo
      HAML
        <p>
        <span>
        foo
        </span>
        </p>
      HTML
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hamlit-1.7.2 spec/hamlit/engine/indent_spec.rb
hamlit-1.7.1 spec/hamlit/engine/indent_spec.rb
hamlit-1.7.0 spec/hamlit/engine/indent_spec.rb
hamlit-1.6.7 spec/hamlit/engine/indent_spec.rb
hamlit-1.6.6 spec/hamlit/engine/indent_spec.rb
hamlit-1.6.5 spec/hamlit/engine/indent_spec.rb
hamlit-1.6.4 spec/hamlit/engine/indent_spec.rb
hamlit-1.6.3 spec/hamlit/engine/indent_spec.rb
hamlit-1.6.2 spec/hamlit/engine/indent_spec.rb