summaryrefslogtreecommitdiff
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
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