File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,19 @@ class TestDocumentEncoding < Nokogiri::TestCase
31
31
end
32
32
33
33
it "encodes the URL as UTF-8" do
34
- assert_equal ( "UTF-8" , shift_jis_document . url . encoding . name )
34
+ assert_equal ( Encoding :: UTF_8 , shift_jis_document . url . encoding )
35
35
end
36
36
37
37
it "encodes the encoding name as UTF-8" do
38
- assert_equal ( "UTF-8" , shift_jis_document . encoding . encoding . name )
38
+ assert_equal ( Encoding :: UTF_8 , shift_jis_document . encoding . encoding )
39
39
end
40
40
41
41
it "encodes the library versions as UTF-8" do
42
42
skip_unless_libxml2
43
- assert_equal ( "UTF-8" , Nokogiri ::LIBXML_COMPILED_VERSION . encoding . name )
44
- assert_equal ( "UTF-8" , Nokogiri ::LIBXSLT_COMPILED_VERSION . encoding . name )
43
+
44
+ assert_equal ( Encoding ::UTF_8 , Nokogiri ::LIBXML_COMPILED_VERSION . encoding )
45
+ assert_equal ( Encoding ::UTF_8 , Nokogiri ::LIBXSLT_COMPILED_VERSION . encoding )
46
+ end
45
47
end
46
48
47
49
it "serializes UTF-16 correctly across libxml2 buffer flushes" do
You can’t perform that action at this time.
0 commit comments