Sha256: 9f97fc470bd1de64362eb32ee6ae445f3e7cc04f6f35d748ead5488ad924b9a8
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'Preserve filter rendering', type: :render do it 'renders preserve filter' do expect(render_string(<<'HAML')).to eq("<span>start</span>\nhello
 <p>wor
ld</p>
<span>hello</span>\n<span>end</span>\n") %span start :preserve hello #{"<p>wor\nld</p>"} <span>hello</span> %span end HAML end it 'preserves last empty lines' do expect(render_string(<<HAML)).to eq("hello

\n<p></p>\n") :preserve hello %p HAML end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faml-0.8.1 | spec/render/filters/preserve_spec.rb |
faml-0.8.0 | spec/render/filters/preserve_spec.rb |