Skip to content

Commit 48a630a

Browse files
vinistockkddnewton
andcommitted
Fix test for pinned variable
Co-authored-by: Kevin Newton <[email protected]>
1 parent 039c087 commit 48a630a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/with_scope_test.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ def foo
117117

118118
assert_equal(2, collector.variables.length)
119119
assert_variable(collector, "a", definitions: [2], usages: [4, 5])
120-
assert_variable(collector, "rest", definitions: [4])
121-
122-
# Rest is considered a vcall by the parser instead of a var_ref
123-
# assert_equal(1, variable_rest.usages.length)
124-
# assert_equal(6, variable_rest.usages[0].start_line)
120+
assert_variable(collector, "rest", definitions: [4], usages: [6])
125121
end
126122

127123
if RUBY_VERSION >= "3.1"

0 commit comments

Comments
 (0)