From ef1ccbbc40cbfa512b2be0eeb7793c3532ff5e20 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 12 Sep 2005 23:09:39 +0000 Subject: * lib/ostruct.rb (new_ostruct_member): Object#send no longer call private methods. [ruby-dev:27044] * test/rss/test_dublincore.rb, test/rss/test_trackback.rb, test/ruby/test_eval.rb, test/socket/test_socket.rb: ditto. * test/ruby/test_lambda (test_call_with_block): lambda makes new scope for formal block parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_lambda.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_lambda.rb') diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb index 0173bead11..d65ab7667f 100644 --- a/test/ruby/test_lambda.rb +++ b/test/ruby/test_lambda.rb @@ -38,7 +38,7 @@ class TestLambdaParameters < Test::Unit::TestCase assert_equal(1, ->(&b){ b.call }.call { 1 }) b = nil assert_equal(1, ->(&b){ b.call }.call { 1 }) - assert_not_nil(b) + assert_nil(b) end def foo -- cgit v1.2.3