summaryrefslogtreecommitdiff
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 11:11:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-25 11:11:42 +0000
commitc8185b327ea68ce125937c977b2b158a90f27561 (patch)
tree8a56c919d0c57a210411c024680a2ad2cc912aa8 /test/ruby/test_proc.rb
parent485e6ebed846fd77e273177e07348a72786c1d97 (diff)
test_method.rb, test_proc.rb: suppress warnings
* test/ruby/test_method.rb: suppress warnings in verbose mode. * test/ruby/test_proc.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r--test/ruby/test_proc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index b40485f582..2acce84da3 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -1209,7 +1209,7 @@ class TestProc < Test::Unit::TestCase
end
def get_binding if: 1, case: 2, when: 3, begin: 4, end: 5
- a = 0
+ a ||= 0
binding
end