summaryrefslogtreecommitdiff
path: root/test/ruby/test_variable.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-24 16:44:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-24 16:44:44 +0000
commitb06f4a939878ad6e6dd8120bb4963e83801b5895 (patch)
treef5bb66d43b735152501bb067186763a182885a96 /test/ruby/test_variable.rb
parenta11831a9a559c296617559f664bcba0aab254563 (diff)
test_variable.rb: fix test
* test/ruby/test_variable.rb (test_binding_local_variables): adjust local variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_variable.rb')
-rw-r--r--test/ruby/test_variable.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb
index 321cd7e4c5..ab4d44938a 100644
--- a/test/ruby/test_variable.rb
+++ b/test/ruby/test_variable.rb
@@ -88,10 +88,9 @@ class TestVariable < Test::Unit::TestCase
bind.local_variables
end
- def test_local_variables_from_other_method_binding
+ def test_binding_local_variables
feature8773 = '[Feature #8773]'
- x = 1
- assert_equal([:x], local_variables_of(binding), feature8773)
+ assert_equal([:feature8773], local_variables_of(binding), feature8773)
end
def test_global_variable_0