From bdbc8c5b74b0b17da710c9f174a920e4c8b3cb02 Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 3 Nov 2012 04:46:06 +0000 Subject: Revert r37439 and r37441 r37439: * lib/rexml/xmldecl.rb (REXML::XMLDecl): Stop using REXML::Encoding module because XMLDecl doesn't convert encoding. This causes removing XML encoding name normalization (encoding.upcase). Encoding name in XML declaration is what user specifies. I think this is reasonable change. * test/rexml/test_xml_declaration.rb: Add tests for the above change. r37441: * test/rexml/test_core.rb (Tester#test_ticket_88): Follow the change that encoding name in XML declaration isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_core.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/rexml/test_core.rb') diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb index bbc23d608c..e530cc16c6 100644 --- a/test/rexml/test_core.rb +++ b/test/rexml/test_core.rb @@ -1312,9 +1312,9 @@ EOL def test_ticket_88 doc = REXML::Document.new("") - assert_equal("", doc.to_s) + assert_equal("", doc.to_s) doc = REXML::Document.new("") - assert_equal("", doc.to_s) + assert_equal("", doc.to_s) end def test_ticket_85 -- cgit v1.2.3