diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-12 23:09:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-12 23:09:39 +0000 |
commit | 01701aabecb8dfbd8a75ab014c0d99ca3c4a26ab (patch) | |
tree | 6e5a90dde2b60164bc8cb2c6af97d994f0f7ea22 /test/ruby/test_eval.rb | |
parent | 039573c5c2fd6eb2dd07aa152e4ef1d20d052a3c (diff) | |
download | ruby-01701aabecb8dfbd8a75ab014c0d99ca3c4a26ab.tar.gz ruby-01701aabecb8dfbd8a75ab014c0d99ca3c4a26ab.tar.xz ruby-01701aabecb8dfbd8a75ab014c0d99ca3c4a26ab.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@9138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_eval.rb')
-rw-r--r-- | test/ruby/test_eval.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index 6b3fea7bb..273b3172b 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -146,7 +146,7 @@ class TestEval < Test::Unit::TestCase assert_nothing_raised { def temporally_method_for_test_eval_and_define_method(&block) lambda { - class << Object.new; self end.__send__(:define_method, :zzz, &block) + class << Object.new; self end.fcall(:define_method, :zzz, &block) } end v = eval("temporally_method_for_test_eval_and_define_method {}") |