summaryrefslogtreecommitdiff
path: root/test/ruby/test_eval.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-04 14:00:48 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-04 14:00:48 +0000
commit77cf13a588be5bab7efa44eccf097ca579a41ae4 (patch)
treeeabfaf70d42aa39b01fe1043b8228b86646b5d3f /test/ruby/test_eval.rb
parent0562c4f76d89cfc9d7c95d077fa62652bbe54664 (diff)
* test/ruby/test_eval.rb (TestEval#make_test_binding): renamed.
it's not test method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_eval.rb')
-rw-r--r--test/ruby/test_eval.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb
index 2700aa33f3..c05adc08e3 100644
--- a/test/ruby/test_eval.rb
+++ b/test/ruby/test_eval.rb
@@ -238,7 +238,7 @@ class TestEval < Test::Unit::TestCase
# From ruby/test/ruby/test_eval.rb
#
- def test_ev
+ def make_test_binding
local1 = "local1"
lambda {
local2 = "local2"
@@ -273,7 +273,7 @@ class TestEval < Test::Unit::TestCase
assert_equal(5, eval("i"))
assert(eval("defined? i"))
- x = test_ev
+ x = make_test_binding
assert_equal("local1", eval("local1", x)) # normal local var
assert_equal("local2", eval("local2", x)) # nested local var
bad = true