aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_ast.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_ast.rb')
-rw-r--r--test/ruby/test_ast.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb
index e782653755..9598aa7553 100644
--- a/test/ruby/test_ast.rb
+++ b/test/ruby/test_ast.rb
@@ -205,9 +205,9 @@ class TestAst < Test::Unit::TestCase
end
def test_scope_local_variables
- node = RubyVM::AbstractSyntaxTree.parse("x = 0")
+ node = RubyVM::AbstractSyntaxTree.parse("_x = 0")
lv, _, body = *node.children
- assert_equal([:x], lv)
+ assert_equal([:_x], lv)
assert_equal(:LASGN, body.type)
end