From dbfb5deab64a8b929b77361b132cd4cad4f8ce10 Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 3 Nov 2012 04:03:55 +0000 Subject: * test/rexml/test_encoding.rb (EncodingTester#test_in_different_out): Fix a test that expects encoding in XML declaration is changed by Output's encoding. It is dropped feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_encoding.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/rexml/test_encoding.rb b/test/rexml/test_encoding.rb index 8b93460e6c..9bcdfb3118 100644 --- a/test/rexml/test_encoding.rb +++ b/test/rexml/test_encoding.rb @@ -10,8 +10,9 @@ class EncodingTester < Test::Unit::TestCase include REXML def setup + @encoded_root = "\346" @encoded = ""+ - "\346" + @encoded_root @not_encoded = "ĉ" end @@ -59,7 +60,7 @@ class EncodingTester < Test::Unit::TestCase doc = Document.new( @not_encoded ) doc.write( Output.new( out="", "ISO-8859-3" ) ) out.force_encoding(::Encoding::ASCII_8BIT) - assert_equal( @encoded, out ) + assert_equal( "#{@encoded_root}", out ) end # * Given an encoded document, accessing text and attribute nodes -- cgit v1.2.3