Skip to content

Commit 9554f2d

Browse files
committed
Fix tests
1 parent de814a0 commit 9554f2d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/ruby_lsp_rails/indexing_enhancement_test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ def setup
2222
@index = self.class.populated_index
2323
end
2424

25+
def teardown
26+
# Prevent state leaking between tests
27+
@index.delete(@indexable_path)
28+
@index.instance_variable_set(:@ancestors, {})
29+
end
30+
2531
test "ClassMethods module inside concerns are automatically extended" do
2632
@index.index_single(RubyIndexer::IndexablePath.new(nil, "/fake.rb"), <<~RUBY)
2733
module Verifiable

0 commit comments

Comments
 (0)