From e98e56e6c4db2a528c882bf12d6499da0bacc566 Mon Sep 17 00:00:00 2001 From: ktsj Date: Mon, 2 Jan 2012 06:29:03 +0000 Subject: * 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 --- test/ruby/test_object.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index 5c6824e8a5..b05375ebba 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -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 -- cgit v1.2.3