diff --git a/test/requests/code_lens_expectations_test.rb b/test/requests/code_lens_expectations_test.rb index 954c55c7de..a2ce4d7a29 100644 --- a/test/requests/code_lens_expectations_test.rb +++ b/test/requests/code_lens_expectations_test.rb @@ -58,7 +58,7 @@ def test_bar; end emitter.visit(document.tree) response = listener.response - assert_equal(0, response.size) + assert_empty(response) end def test_no_code_lens_for_rspec @@ -76,7 +76,7 @@ def test_bar; end emitter.visit(document.tree) response = listener.response - assert_equal(0, response.size) + assert_empty(response) end def test_after_request_hook @@ -99,7 +99,7 @@ class Test < Minitest::Test; end assert_match("Debug", response[2].command.title) assert_match("Run Test", response[3].command.title) ensure - RubyLsp::Requests::Hover.listeners.clear + RubyLsp::Requests::CodeLens.listeners.clear T.must(message_queue).close end