aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_method.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_method.rb
parent485e6ebed846fd77e273177e07348a72786c1d97 (diff)
downloadruby-c8185b327ea68ce125937c977b2b158a90f27561.tar.gz
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_method.rb')
-rw-r--r--test/ruby/test_method.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 1652c91d4f..bb6b9ae70b 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -22,7 +22,7 @@ class TestMethod < Test::Unit::TestCase
def mo5(a, *b, c) end
def mo6(a, *b, c, &d) end
def mo7(a, b = nil, *c, d, &e) end
- def ma1((a), &b) end
+ def ma1((a), &b) nil && a end
class Base
def foo() :base end
@@ -293,7 +293,7 @@ class TestMethod < Test::Unit::TestCase
end
end
- assert_nothing_raised do
+ assert_nothing_raised(bug8686) do
m.define_singleton_method(:a, m.method(:a))
end
end
@@ -456,7 +456,7 @@ class TestMethod < Test::Unit::TestCase
define_method(:pmo5) {|a, *b, c|}
define_method(:pmo6) {|a, *b, c, &d|}
define_method(:pmo7) {|a, b = nil, *c, d, &e|}
- define_method(:pma1) {|(a), &b|}
+ define_method(:pma1) {|(a), &b| nil && a}
def test_bound_parameters
assert_equal([], method(:m0).parameters)
@@ -659,6 +659,7 @@ class TestMethod < Test::Unit::TestCase
prepend m
}
assert_raise(NameError, bug7988) {Module.new{prepend m}.instance_method(:bar)}
+ true || c || bug7836
end
def test_gced_bmethod