Sha256: 229d07541893610e6ebc77ab203138217e13c1f8bcad54579364a12dc22334ca

Contents?: true

Size: 359 Bytes

Versions: 8

Compression:

Stored size: 359 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'))
    doc = CommonMarker.render_doc(contents, :smart)
    render = doc.to_html
    assert_equal render.rstrip, '<p>This curly quote “makes commonmarker throw an exception”.</p>'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
commonmarker-0.10.0 test/test_encoding.rb
commonmarker-0.9.2 test/test_encoding.rb
commonmarker-0.9.1 test/test_encoding.rb
commonmarker-0.9.0 test/test_encoding.rb
commonmarker-0.8.0 test/test_encoding.rb
commonmarker-0.7.0 test/test_encoding.rb
commonmarker-0.6.0 test/test_encoding.rb
commonmarker-0.5.1 test/test_encoding.rb