Sha256: 39b6b5958196034a4d0830115550ab99e7d95492199e6d68a915fa84cc8da8fc

Contents?: true

Size: 270 Bytes

Versions: 9

Compression:

Stored size: 270 Bytes

Contents

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

RSpec.describe Faml::Helpers, type: :render do
  it 'has preserve method' do
    expect(render_string('%span!= preserve "hello\nworld !"', extend_helpers: true)).to eq("<span>hello&#x000A;world !</span>\n")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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