Sha256: 17d3b9a3490a21da9a1b55389d59a38edb1886114caa22e38710160bdd768f64

Contents?: true

Size: 458 Bytes

Versions: 10

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Plain filter rendering', type: :render do
  it 'renders plain filter' do
    expect(render_string(<<'HAML')).to eq("<span>\nhello\n<span>world</span>\n</span>\n")
%span
  :plain
    he#{'llo'}
  %span world
HAML
  end

  it 'strips last empty lines' do
    expect(render_string(<<'HAML')).to eq("<span>\nhello\n\nabc\n<span>world</span>\n</span>\n")
%span
  :plain
    he#{'llo'}

    abc

  %span world
HAML
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
faml-0.6.0 spec/render/filters/plain_spec.rb
faml-0.5.1 spec/render/filters/plain_spec.rb
faml-0.5.0 spec/render/filters/plain_spec.rb
faml-0.4.2 spec/render/filters/plain_spec.rb
faml-0.4.1 spec/render/filters/plain_spec.rb
faml-0.4.0 spec/render/filters/plain_spec.rb
faml-0.3.6 spec/render/filters/plain_spec.rb
faml-0.3.5 spec/render/filters/plain_spec.rb
faml-0.3.4 spec/render/filters/plain_spec.rb
faml-0.3.3 spec/render/filters/plain_spec.rb