Sha256: cffb20ceb56d758fc8b6967ec8a1e28d930c3ac2cafc843bf0bcee0e9e4006ba

Contents?: true

Size: 270 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

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