diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-25 10:24:17 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-25 10:24:17 +0000 |
commit | 047bcbd51926580dbf6678bc69cddf7cfb4ed981 (patch) | |
tree | 8ca077a1cdbad5c2c503f1cf08b2133d941cfb6c /test | |
parent | 32b66dcf9070f0a07e5a19c8046c1026d65bfc2e (diff) |
Revert "trunk r28202 : [ruby-dev:37240]"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_eval.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index 2f4b0bfbbd..23d34a5f81 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -1,5 +1,4 @@ require 'test/unit' -require_relative 'envutil' class TestEval < Test::Unit::TestCase @@ -8,15 +7,6 @@ class TestEval < Test::Unit::TestCase $gvar__eval = 14 Const = 15 - def ruby(*args) - args = ['-e', '$>.write($<.read)'] if args.empty? - ruby = EnvUtil.rubybin - f = IO.popen([ruby] + args, 'r+') - yield(f) - ensure - f.close unless !f || f.closed? - end - def test_eval_basic assert_equal nil, eval("nil") assert_equal true, eval("true") @@ -401,11 +391,4 @@ class TestEval < Test::Unit::TestCase end.join end end - - def test_eval_with_toplevel_binding # [ruby-dev:37142] - ruby("-e", "x = 0; eval('p x', TOPLEVEL_BINDING)") do |f| - f.close_write - assert_equal("0", f.read.chomp) - end - end end |