summaryrefslogtreecommitdiff
path: root/test/stringio
diff options
context:
space:
mode:
Diffstat (limited to 'test/stringio')
-rw-r--r--test/stringio/test_stringio.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index 6d1a6ea8d5..873f67b3b8 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -29,6 +29,8 @@ class TestStringIO < Test::Unit::TestCase
nil
end
assert_raise(TypeError) { StringIO.new(o) }
+
+ o = Object.new
def o.to_str
'str'
end