Sha256: 0ff2b2f8a3cf9a55717d8902848b71847fb49cbc84c73151081f9d2b3e515421

Contents?: true

Size: 397 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

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