Sha256: 037c0e21a0b31fa6609834b4d15b183058b46d8b731bc9874685c522684d8b5d

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

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