1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_object.rb: for r48118

* test/ruby/test_object.rb: assertion for r48118.  defined method
  should be called.  [Bug #10421]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-10-23 16:23:46 +00:00
parent 80ace10f3a
commit b5f3b4cb09

View file

@ -320,9 +320,12 @@ class TestObject < Test::Unit::TestCase
INPUT
bug10421 = '[ruby-dev:48691] [Bug #10421]'
assert_in_out_err([], <<-INPUT, [], [], bug10421)
assert_in_out_err([], <<-INPUT, ["1"], [], bug10421)
$VERBOSE = false
def (BasicObject.new).object_id; end
class C < BasicObject
def object_id; 1; end
end
puts C.new.object_id
INPUT
end