Sha256: 0c5db1cdbd705bd564909616829da82169a859eabccaab3b11720269efa23e27

Contents?: true

Size: 284 Bytes

Versions: 41

Compression:

Stored size: 284 Bytes

Contents

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

41 entries across 41 versions & 2 rubygems

Version Path
faml-0.2.9 spec/render/filters/cdata_spec.rb
faml-0.2.8 spec/render/filters/cdata_spec.rb
faml-0.2.7 spec/render/filters/cdata_spec.rb
faml-0.2.6 spec/render/filters/cdata_spec.rb
faml-0.2.5 spec/render/filters/cdata_spec.rb
faml-0.2.4 spec/render/filters/cdata_spec.rb
faml-0.2.3 spec/render/filters/cdata_spec.rb
faml-0.2.2 spec/render/filters/cdata_spec.rb
faml-0.2.1 spec/render/filters/cdata_spec.rb
faml-0.2.0 spec/render/filters/cdata_spec.rb
fast_haml-0.1.10 spec/render/filters/cdata_spec.rb
fast_haml-0.1.9 spec/render/filters/cdata_spec.rb
fast_haml-0.1.8 spec/render/filters/cdata_spec.rb
fast_haml-0.1.7 spec/render/filters/cdata_spec.rb
fast_haml-0.1.6 spec/render/filters/cdata_spec.rb
fast_haml-0.1.5 spec/render/filters/cdata_spec.rb
fast_haml-0.1.4 spec/render/filters/cdata_spec.rb
fast_haml-0.1.3 spec/render/filters/cdata_spec.rb
fast_haml-0.1.2 spec/render/filters/cdata_spec.rb
fast_haml-0.1.1 spec/render/filters/cdata_spec.rb