diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 09:57:53 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 09:57:53 +0000 |
| commit | 320553cda48fac77e8cc2284b10b0f091a51722e (patch) | |
| tree | a6cd8b6ecfb5e2f52f04cbbe29e4fd9f3adbd59e /test/ruby/test_eval.rb | |
| parent | a9d73d360df0d3bc6b738cb10858ae63f24f847a (diff) | |
| download | ruby-320553cda48fac77e8cc2284b10b0f091a51722e.tar.gz ruby-320553cda48fac77e8cc2284b10b0f091a51722e.tar.xz ruby-320553cda48fac77e8cc2284b10b0f091a51722e.zip | |
* test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize):
initialize @workdir to stop warning.
* lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block):
replace funcall by send!. other files in the distribution as well.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_eval.rb')
| -rw-r--r-- | test/ruby/test_eval.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index e79d1c82e..22cc4456d 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -124,7 +124,7 @@ class TestEval < Test::Unit::TestCase obj.class.class_variable_set :@@cvar, 13 # Use same value with env. See also test_instance_variable_cvar. obj.class.const_set :Const, 15 unless obj.class.const_defined?(:Const) - funcall mid, obj + send! mid, obj end end @@ -364,7 +364,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.funcall(:define_method, :zzz, &block) + class << Object.new; self end.send!(:define_method, :zzz, &block) } end v = eval("temporally_method_for_test_eval_and_define_method {}") |
