Sha256: d3afe06179940b0278869d152a1432a645224d3dc58c1e73142c2194ef77588d

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

require 'test_helper'

class TestEncoding < Minitest::Test
  # see http://git.io/vq4FR
  def test_encoding
    contents = File.read(File.join(FIXTURES_DIR, 'curly.md'))
    render = CommonMarker.render_html(contents, :smart)
    assert_equal render.rstrip, '<p>This curly quote “makes commonmarker throw an exception”.</p>'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonmarker-0.5.0 test/test_encoding.rb
commonmarker-0.4.1 test/test_encoding.rb
commonmarker-0.4.0 test/test_encoding.rb
commonmarker-0.3.0 test/test_encoding.rb
commonmarker-0.2.1 test/test_encoding.rb