From 0562c4f76d89cfc9d7c95d077fa62652bbe54664 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 4 Mar 2014 13:55:24 +0000 Subject: * test/ruby: get rid of warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_exception.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_exception.rb') diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index aabe1464b1..f3afd674ab 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -523,9 +523,9 @@ end.join assert_equal(false, s.tainted?) end - def m; - m &->{return 0}; - 42; + def m + m(&->{return 0}) + 42 end def test_stackoverflow @@ -573,7 +573,6 @@ end.join def test_cause_reraised msg = "[Feature #8257]" - cause = nil e = assert_raise(RuntimeError) { begin raise msg -- cgit v1.2.3