ruby-changes:25385
From: kou <ko1@a...>
Date: Sat, 3 Nov 2012 13:04:04 +0900 (JST)
Subject: [ruby-changes:25385] kou:r37442 (trunk): * test/rexml/test_encoding.rb (EncodingTester#test_in_different_out):
kou 2012-11-03 13:03:55 +0900 (Sat, 03 Nov 2012) New Revision: 37442 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37442 Log: * 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. Modified files: trunk/ChangeLog trunk/test/rexml/test_encoding.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 37441) +++ ChangeLog (revision 37442) @@ -1,3 +1,9 @@ +Sat Nov 3 13:01:02 2012 Kouhei Sutou <kou@c...> + + * 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. + Sat Nov 3 12:54:13 2012 Kouhei Sutou <kou@c...> * test/rexml/test_core.rb (Tester#test_ticket_88): Follow the Index: test/rexml/test_encoding.rb =================================================================== --- test/rexml/test_encoding.rb (revision 37441) +++ test/rexml/test_encoding.rb (revision 37442) @@ -10,8 +10,9 @@ include REXML def setup + @encoded_root = "<a><b>\346</b></a>" @encoded = "<?xml version='1.0' encoding='ISO-8859-3'?>"+ - "<a><b>\346</b></a>" + @encoded_root @not_encoded = "<a><b></b></a>" end @@ -59,7 +60,7 @@ 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( "<?xml version='1.0'?>#{@encoded_root}", out ) end # * Given an encoded document, accessing text and attribute nodes -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/