aboutsummaryrefslogtreecommitdiffstats
path: root/test/stringio
diff options
context:
space:
mode:
Diffstat (limited to 'test/stringio')
-rw-r--r--test/stringio/test_stringio.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index 667fe3ea81..99548d676d 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -570,12 +570,12 @@ class TestStringIO < Test::Unit::TestCase
assert_equal("\u3042\u3044", f.read(nil, nil), bug5207)
f.rewind
s = ""
- f.read(nil, s)
+ assert_same(s, f.read(nil, s))
assert_equal("\u3042\u3044", s, bug5207)
f.rewind
# not empty buffer
s = "0123456789"
- f.read(nil, s)
+ assert_same(s, f.read(nil, s))
assert_equal("\u3042\u3044", s)
end