Sha256: 0ba1eec6305ab51c18be6aab31fab0b8d8495b5b19bf2a51dd135355df18d5e8

Contents?: true

Size: 376 Bytes

Versions: 31

Compression:

Stored size: 376 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Markdown filter rendering', type: :render do
  it 'renders Markdown filter' do
    expect(render_string(<<HAML)).to eq("<h1>hello</h1>\nworld\n")
:markdown
  # hello
world
HAML
  end

  it 'parses string interpolation' do
    expect(render_string(<<'HAML')).to eq("<h1>hello</h1>\nworld\n")
:markdown
  # #{'hello'}
world
HAML
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
faml-0.6.0 spec/render/filters/markdown_spec.rb
faml-0.5.1 spec/render/filters/markdown_spec.rb
faml-0.5.0 spec/render/filters/markdown_spec.rb
faml-0.4.2 spec/render/filters/markdown_spec.rb
faml-0.4.1 spec/render/filters/markdown_spec.rb
faml-0.4.0 spec/render/filters/markdown_spec.rb
faml-0.3.6 spec/render/filters/markdown_spec.rb
faml-0.3.5 spec/render/filters/markdown_spec.rb
faml-0.3.4 spec/render/filters/markdown_spec.rb
faml-0.3.3 spec/render/filters/markdown_spec.rb
faml-0.3.2 spec/render/filters/markdown_spec.rb
faml-0.3.1 spec/render/filters/markdown_spec.rb
faml-0.3.0 spec/render/filters/markdown_spec.rb
faml-0.2.16 spec/render/filters/markdown_spec.rb
faml-0.2.15 spec/render/filters/markdown_spec.rb
faml-0.2.14 spec/render/filters/markdown_spec.rb
faml-0.2.13 spec/render/filters/markdown_spec.rb
faml-0.2.12 spec/render/filters/markdown_spec.rb
faml-0.2.11 spec/render/filters/markdown_spec.rb
faml-0.2.10 spec/render/filters/markdown_spec.rb