summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 10:24:17 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 10:24:17 +0000
commit6913999c33c2710453f9a5767a1dad2dd42582c0 (patch)
tree8ca077a1cdbad5c2c503f1cf08b2133d941cfb6c /test/ruby
parentaa3f56638e7a9b1b518d6b72bcd5104feb484f98 (diff)
downloadruby-6913999c33c2710453f9a5767a1dad2dd42582c0.tar.gz
ruby-6913999c33c2710453f9a5767a1dad2dd42582c0.tar.xz
ruby-6913999c33c2710453f9a5767a1dad2dd42582c0.zip
Revert "trunk r28202 : [ruby-dev:37240]"
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_eval.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb
index 2f4b0bfbb..23d34a5f8 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