Skip to content

Commit

Permalink
Merge pull request vmg#95 from bostonaholic/master
Browse files Browse the repository at this point in the history
Markdown#render does not preserve encoding
  • Loading branch information
vmg committed Dec 30, 2011
2 parents 86d2e3c + f1c12a9 commit 3abe96a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/redcarpet_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ def test_should_return_string_in_same_encoding_as_input
output = @markdown.render(input)
assert_equal input.encoding.name, output.encoding.name
end

def test_should_return_string_in_same_encoding_not_in_utf8
input = "testing".encode('US-ASCII')
output = @markdown.render(input)
assert_equal input.encoding.name, output.encoding.name
end
end

def test_that_tags_can_have_dashes_and_underscores
Expand Down

0 comments on commit 3abe96a

Please sign in to comment.