Sha256: 5ff354985bd62835480200ef46c991e74a0d824b20557f744eaebe4d2c15a399

Contents?: true

Size: 331 Bytes

Versions: 41

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Preserve rendering', type: :render do
  it 'parses preserved script' do
    expect(render_string('~ "<p>hello\nworld</p>"')).to eq("&lt;p&gt;hello\nworld&lt;/p&gt;\n")
    expect(render_string('%span~ "<p>hello\nworld</p>"')).to eq("<span>&lt;p&gt;hello\nworld&lt;/p&gt;</span>\n")
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
faml-0.6.0 spec/render/preserve_spec.rb
faml-0.5.1 spec/render/preserve_spec.rb
faml-0.5.0 spec/render/preserve_spec.rb
faml-0.4.2 spec/render/preserve_spec.rb
faml-0.4.1 spec/render/preserve_spec.rb
faml-0.4.0 spec/render/preserve_spec.rb
faml-0.3.6 spec/render/preserve_spec.rb
faml-0.3.5 spec/render/preserve_spec.rb
faml-0.3.4 spec/render/preserve_spec.rb
faml-0.3.3 spec/render/preserve_spec.rb
faml-0.3.2 spec/render/preserve_spec.rb
faml-0.3.1 spec/render/preserve_spec.rb
faml-0.3.0 spec/render/preserve_spec.rb
faml-0.2.16 spec/render/preserve_spec.rb
faml-0.2.15 spec/render/preserve_spec.rb
faml-0.2.14 spec/render/preserve_spec.rb
faml-0.2.13 spec/render/preserve_spec.rb
faml-0.2.12 spec/render/preserve_spec.rb
faml-0.2.11 spec/render/preserve_spec.rb
faml-0.2.10 spec/render/preserve_spec.rb