diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-28 15:22:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-28 15:22:27 +0900 |
commit | e0c4cb2ea1ac648bdd0850dd1621f5e13382b760 (patch) | |
tree | decf9c0b3469a65748b58345221de2362f047f24 /test/stringio | |
parent | a0c141b6d04482ebfc4b3abf3f00a476d073226a (diff) | |
download | bundler-e0c4cb2ea1ac648bdd0850dd1621f5e13382b760.tar.gz |
Define singleton method on each new objects
Diffstat (limited to 'test/stringio')
-rw-r--r-- | test/stringio/test_stringio.rb | 2 |
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 |