diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/ruby/test_object.rb | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Mon Jan 2 15:26:39 2012 Kazuki Tsujimoto <kazuki@callcc.net> + + * test/ruby/test_object.rb (test_send_with_block): add a normal case. + Mon Jan 2 15:18:54 2012 Kazuki Tsujimoto <kazuki@callcc.net> * test/ruby/test_object.rb (test_send_with_block): moved from 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 |