Sha256: 7ac745293561fa5cab6dd683ddb41d00126e8b141edbba95206799c75b307eac

Contents?: true

Size: 645 Bytes

Versions: 36

Compression:

Stored size: 645 Bytes

Contents

describe Hamlit::Filters::Markdown do
  describe '#compile' do
    it 'renders markdown filter' do
      assert_render(<<-HAML, <<-HTML)
        :markdown
          # Hamlit
          Yet another haml implementation
      HAML
        <h1>Hamlit</h1>

        <p>Yet another haml implementation</p>
      HTML
    end

    it 'renders markdown filter with string interpolation' do
      assert_render(<<-'HAML', <<-HTML)
        - project = 'Hamlit'
        :markdown
          # #{project}
          Yet another haml implementation
      HAML
        <h1>Hamlit</h1>

        <p>Yet another haml implementation</p>
      HTML
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hamlit-1.5.1 spec/hamlit/filters/markdown_spec.rb
hamlit-1.5.0 spec/hamlit/filters/markdown_spec.rb
hamlit-1.4.7 spec/hamlit/filters/markdown_spec.rb
hamlit-1.4.6 spec/hamlit/filters/markdown_spec.rb
hamlit-1.4.5 spec/hamlit/filters/markdown_spec.rb
hamlit-1.4.3 spec/hamlit/filters/markdown_spec.rb
hamlit-1.4.2 spec/hamlit/filters/markdown_spec.rb
hamlit-1.4.1 spec/hamlit/filters/markdown_spec.rb
hamlit-1.3.2 spec/hamlit/filters/markdown_spec.rb
hamlit-1.3.1 spec/hamlit/filters/markdown_spec.rb
hamlit-1.3.0 spec/hamlit/filters/markdown_spec.rb
hamlit-1.2.1 spec/hamlit/filters/markdown_spec.rb
hamlit-1.2.0 spec/hamlit/filters/markdown_spec.rb
hamlit-1.1.1 spec/hamlit/filters/markdown_spec.rb
hamlit-1.1.0 spec/hamlit/filters/markdown_spec.rb
hamlit-1.0.0 spec/hamlit/filters/markdown_spec.rb
hamlit-0.6.2 spec/hamlit/filters/markdown_spec.rb
hamlit-0.6.1 spec/hamlit/filters/markdown_spec.rb
hamlit-0.6.0 spec/hamlit/filters/markdown_spec.rb
hamlit-0.5.3 spec/hamlit/filters/markdown_spec.rb