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
fast_haml-0.1.10 spec/render/filters/escaped_spec.rb
fast_haml-0.1.9 spec/render/filters/escaped_spec.rb
fast_haml-0.1.8 spec/render/filters/escaped_spec.rb
fast_haml-0.1.7 spec/render/filters/escaped_spec.rb
fast_haml-0.1.6 spec/render/filters/escaped_spec.rb
fast_haml-0.1.5 spec/render/filters/escaped_spec.rb
fast_haml-0.1.4 spec/render/filters/escaped_spec.rb
fast_haml-0.1.3 spec/render/filters/escaped_spec.rb
fast_haml-0.1.2 spec/render/filters/escaped_spec.rb
fast_haml-0.1.1 spec/render/filters/escaped_spec.rb
fast_haml-0.1.0 spec/render/filters/escaped_spec.rb