Sha256: 2da95bee540b95277cf8907c529453334347bb2218d65568b5848b581a09c74b

Contents?: true

Size: 397 Bytes

Versions: 9

Compression:

Stored size: 397 Bytes

Contents

# frozen-string-literal: true
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

9 entries across 9 versions & 1 rubygems

Version Path
faml-0.7.3 spec/render/filters/escaped_spec.rb
faml-0.7.2 spec/render/filters/escaped_spec.rb
faml-0.7.1 spec/render/filters/escaped_spec.rb
faml-0.7.0 spec/render/filters/escaped_spec.rb
faml-0.6.5 spec/render/filters/escaped_spec.rb
faml-0.6.4 spec/render/filters/escaped_spec.rb
faml-0.6.3 spec/render/filters/escaped_spec.rb
faml-0.6.2 spec/render/filters/escaped_spec.rb
faml-0.6.1 spec/render/filters/escaped_spec.rb