Sha256: 95f72c6f18835291c2192cea27ddcfc68b890121b050218bcca7bc4751ea0719

Contents?: true

Size: 314 Bytes

Versions: 9

Compression:

Stored size: 314 Bytes

Contents

# frozen-string-literal: true
require 'spec_helper'

RSpec.describe 'CDATA filter rendering', type: :render do
  it 'renders CDATA filter' do
    expect(render_string(<<'HAML')).to eq("<![CDATA[\n    hello\n    world\n    <span>hello</span>\n]]>\n")
:cdata
  hello
  #{'world'}
  <span>hello</span>
HAML
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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