Skip to content

Commit

Permalink
Use teardown instead
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Oct 4, 2023
1 parent 90904da commit 216877e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/requests/support/dependency_detector_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module RubyLsp
class DependencyDetectorTest < Minitest::Test
def setup
def teardown
Singleton.__init__(RubyLsp::DependencyDetector)
end

Expand Down Expand Up @@ -52,6 +52,7 @@ def test_direct_dependency_returns_false_outside_of_bundle
private

def stub_dependencies(dependencies)
Singleton.__init__(RubyLsp::DependencyDetector)
Bundler.locked_gems.stubs(dependencies: dependencies)
end
end
Expand Down

0 comments on commit 216877e

Please sign in to comment.