Sha256: 44f66636f66bc05ae4571af860bbf9faed80dd33591d25ed04687f1e74b4e982

Contents?: true

Size: 454 Bytes

Versions: 31

Compression:

Stored size: 454 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

31 entries across 31 versions & 2 rubygems

Version Path
faml-0.3.2 spec/render/filters/plain_spec.rb
faml-0.3.1 spec/render/filters/plain_spec.rb
faml-0.3.0 spec/render/filters/plain_spec.rb
faml-0.2.16 spec/render/filters/plain_spec.rb
faml-0.2.15 spec/render/filters/plain_spec.rb
faml-0.2.14 spec/render/filters/plain_spec.rb
faml-0.2.13 spec/render/filters/plain_spec.rb
faml-0.2.12 spec/render/filters/plain_spec.rb
faml-0.2.11 spec/render/filters/plain_spec.rb
faml-0.2.10 spec/render/filters/plain_spec.rb
faml-0.2.9 spec/render/filters/plain_spec.rb
faml-0.2.8 spec/render/filters/plain_spec.rb
faml-0.2.7 spec/render/filters/plain_spec.rb
faml-0.2.6 spec/render/filters/plain_spec.rb
faml-0.2.5 spec/render/filters/plain_spec.rb
faml-0.2.4 spec/render/filters/plain_spec.rb
faml-0.2.3 spec/render/filters/plain_spec.rb
faml-0.2.2 spec/render/filters/plain_spec.rb
faml-0.2.1 spec/render/filters/plain_spec.rb
faml-0.2.0 spec/render/filters/plain_spec.rb