From e0c4cb2ea1ac648bdd0850dd1621f5e13382b760 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 28 Jun 2019 15:22:27 +0900 Subject: Define singleton method on each new objects --- test/stringio/test_stringio.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/stringio') 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 -- cgit v1.2.3