Sha256: bbc7eb2a9878a048b3486623286fcf93fe40da9162471c31d35b674b890c2611

Contents?: true

Size: 366 Bytes

Versions: 31

Compression:

Stored size: 366 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Escaped filter rendering', type: :render do
  it' renders escaped filter' do
    expect(render_string(<<'HAML')).to eq("<span>start</span>\nhello\n  &lt;p&gt;world&lt;/p&gt;\n&lt;span&gt;hello&lt;/span&gt;\n\n<span>end</span>\n")
%span start
:escaped
  hello
    #{'<p>world</p>'}
  <span>hello</span>
%span end
HAML
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

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