Sha256: da765cab4aede0a7d038d70d361e067f165921f64366ed5e47b5763d21d83b47

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

# coding: utf-8
require 'test_helper'

class TestEncoding < Minitest::Test
  # see http://git.io/vq4FR
  def test_encoding
    contents = File.read(File.join(FIXTURES_DIR, 'curly.md'), encoding: 'utf-8')
    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

2 entries across 2 versions & 1 rubygems

Version Path
commonmarker-0.12.0 test/test_encoding.rb
commonmarker-0.11.0 test/test_encoding.rb