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

* test/ruby/test_object.rb (test_send_with_block): add a normal case.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ktsj 2012-01-02 06:29:03 +00:00
parent 66f9d5fe11
commit e98e56e6c4
2 changed files with 8 additions and 0 deletions

View file

@ -438,6 +438,10 @@ class TestObject < Test::Unit::TestCase
end
def test_send_with_block
x = :ng
1.send(:times) { x = :ok }
assert_equal(:ok, x)
x = :ok
o = Object.new
def o.inspect