Sha256: 9dfce0e6546e6f65c168c76daa9f51c4ba4a0564109d7dab3d783ee330ed6282

Contents?: true

Size: 267 Bytes

Versions: 17

Compression:

Stored size: 267 Bytes

Contents

describe Hamlit::Parser do
  describe 'preservation' do
    it 'renders whitespace preservation operator' do
      assert_render(<<-'HAML', <<-HTML)
        ~ "<code>hello\nworld</code>"
      HAML
        <code>hello&#x000A;world</code>
      HTML
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hamlit-0.5.3 spec/hamlit/engine/preservation_spec.rb
hamlit-0.5.2 spec/hamlit/engine/preservation_spec.rb
hamlit-0.5.1 spec/hamlit/engine/preservation_spec.rb
hamlit-0.5.0 spec/hamlit/engine/preservation_spec.rb
hamlit-0.4.3 spec/hamlit/engine/preservation_spec.rb
hamlit-0.4.2 spec/hamlit/engine/preservation_spec.rb
hamlit-0.4.1 spec/hamlit/engine/preservation_spec.rb
hamlit-0.3.4 spec/hamlit/engine/preservation_spec.rb
hamlit-0.3.3 spec/hamlit/engine/preservation_spec.rb
hamlit-0.3.2 spec/hamlit/engine/preservation_spec.rb
hamlit-0.3.1 spec/hamlit/engine/preservation_spec.rb
hamlit-0.3.0 spec/hamlit/engine/preservation_spec.rb
hamlit-0.2.0 spec/hamlit/engine/preservation_spec.rb
hamlit-0.1.3 spec/hamlit/engine/preservation_spec.rb
hamlit-0.1.2 spec/hamlit/engine/preservation_spec.rb
hamlit-0.1.1 spec/hamlit/engine/preservation_spec.rb
hamlit-0.1.0 spec/hamlit/engine/preservation_spec.rb