Skip to content
Browse files

Add a failing test that should be passing.

  • Loading branch information...
1 parent 9bbfa3d commit 11df7c92c8de2a6c2274c8169f264e62b75e02f1 @knu knu committed Aug 17, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/html/test_document_encoding.rb
View
5 test/html/test_document_encoding.rb
@@ -24,6 +24,11 @@ def test_document_html_io_encoding_19
html = Nokogiri::HTML(f)
assert_equal 'Shift_JIS', html.encoding
assert_equal 'こんにちは!', html.title
+
+ f = open(SHIFT_JIS_NODECL_HTML, 'r:Shift_JIS:UTF-8')
+ html = Nokogiri::HTML(f)
+ assert_equal 'UTF-8', html.encoding
+ assert_equal 'こんにちは!', html.title
end
def test_default_to_encoding_from_string

0 comments on commit 11df7c9

Please sign in to comment.
Something went wrong with that request. Please try again.