Sha256: cee69476018d29702ac82e41d72be6a279950e663dcb9e33903e6e7c8a497e0f

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true
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

2 entries across 2 versions & 1 rubygems

Version Path
faml-0.8.1 spec/render/preserve_spec.rb
faml-0.8.0 spec/render/preserve_spec.rb