Sha256: 06ca364bb50ea0bc6c30a2a8be3206806ce0d52439f5a5238ee0a4c85cf343a2

Contents?: true

Size: 218 Bytes

Versions: 27

Compression:

Stored size: 218 Bytes

Contents

require 'spec_helper'

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

Version data entries

27 entries across 27 versions & 1 rubygems

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