aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-02 06:29:03 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-02 06:29:03 +0000
commite98e56e6c4db2a528c882bf12d6499da0bacc566 (patch)
tree763902497d775a0553be72fc36e35bda5660ac03 /test/ruby/test_object.rb
parent66f9d5fe11ca774b850cd55ca3476eb23d6db08a (diff)
downloadruby-e98e56e6c4db2a528c882bf12d6499da0bacc566.tar.gz
* 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
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb4
1 files changed, 4 insertions, 0 deletions
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