Skip to content

Commit

Permalink
And done! <3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Izumi authored and gjtorikian committed Oct 11, 2016
1 parent 183d3bf commit c50d0c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_encoding.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# 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'))
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>'
Expand Down

0 comments on commit c50d0c6

Please sign in to comment.