summaryrefslogtreecommitdiff
path: root/test/rexml
diff options
context:
space:
mode:
Diffstat (limited to 'test/rexml')
-rw-r--r--test/rexml/test_encoding.rb5
1 files changed, 3 insertions, 2 deletions
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 = "<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 @@ 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( "<?xml version='1.0'?>#{@encoded_root}", out )
end
# * Given an encoded document, accessing text and attribute nodes