summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 07:01:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 07:01:35 +0000
commit319bcad626335292723e1b1d668c56e1fa5d8fb8 (patch)
tree57767e90332f860867dca559c534eda1123ffc0a /test
parent75e4572768e5ae53f935d2899c08c8db9fc1bb36 (diff)
* test/ruby/test_io_m17n.rb: fix tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io_m17n.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index 9a8236a5c3..ccb74103fc 100644
--- a/test/ruby/test_io_m17n.rb
+++ b/test/ruby/test_io_m17n.rb
@@ -87,7 +87,7 @@ EOT
def test_open_w
with_tmpdir {
open("tmp", "w") {|f|
- assert_equal(Encoding.default_external, f.external_encoding)
+ assert_equal(nil, f.external_encoding)
assert_equal(nil, f.internal_encoding)
}
}
@@ -96,7 +96,7 @@ EOT
def test_open_wb
with_tmpdir {
open("tmp", "wb") {|f|
- assert_equal(Encoding::ASCII_8BIT, f.external_encoding)
+ assert_equal(nil, f.external_encoding)
assert_equal(nil, f.internal_encoding)
}
}
@@ -135,12 +135,12 @@ EOT
end
def test_stdout
- assert_equal(Encoding.default_external, STDOUT.external_encoding)
+ assert_equal(nil, STDOUT.external_encoding)
assert_equal(nil, STDOUT.internal_encoding)
end
def test_stderr
- assert_equal(Encoding.default_external, STDERR.external_encoding)
+ assert_equal(nil, STDERR.external_encoding)
assert_equal(nil, STDERR.internal_encoding)
end