Sha256: 3694a56bb84b270389754b89bc99c2dd97730f823724143d392c80856c3b9285

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true
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

2 entries across 2 versions & 1 rubygems

Version Path
faml-0.8.1 spec/render/filters/markdown_spec.rb
faml-0.8.0 spec/render/filters/markdown_spec.rb