diff --git a/test/ruby_lsp_rails/code_lens_test.rb b/test/ruby_lsp_rails/code_lens_test.rb index 0c9432cc..35d072b8 100644 --- a/test/ruby_lsp_rails/code_lens_test.rb +++ b/test/ruby_lsp_rails/code_lens_test.rb @@ -6,14 +6,6 @@ module RubyLsp module Rails class CodeLensTest < ActiveSupport::TestCase - setup do - @message_queue = Thread::Queue.new - end - - def teardown - T.must(@message_queue).close - end - test "does not create code lenses if rails is not the test library" do RubyLsp::GlobalState.any_instance.stubs(:test_library).returns("rspec") response = generate_code_lens_for_source(<<~RUBY) diff --git a/test/ruby_lsp_rails/definition_test.rb b/test/ruby_lsp_rails/definition_test.rb index 417a86a8..a1b70343 100644 --- a/test/ruby_lsp_rails/definition_test.rb +++ b/test/ruby_lsp_rails/definition_test.rb @@ -6,14 +6,6 @@ module RubyLsp module Rails class DefinitionTest < ActiveSupport::TestCase - setup do - @message_queue = Thread::Queue.new - end - - def teardown - T.must(@message_queue).close - end - test "recognizes model callback with multiple symbol arguments" do response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 10 }) # typed: false diff --git a/test/ruby_lsp_rails/document_symbol_test.rb b/test/ruby_lsp_rails/document_symbol_test.rb index a6597af8..5fbbc512 100644 --- a/test/ruby_lsp_rails/document_symbol_test.rb +++ b/test/ruby_lsp_rails/document_symbol_test.rb @@ -6,14 +6,6 @@ module RubyLsp module Rails class DocumentSymbolTest < ActiveSupport::TestCase - setup do - @message_queue = Thread::Queue.new - end - - def teardown - T.must(@message_queue).close - end - test "recognizes Rails Active Support test cases" do response = generate_document_symbols_for_source(<<~RUBY) class Test < ActiveSupport::TestCase diff --git a/test/ruby_lsp_rails/hover_test.rb b/test/ruby_lsp_rails/hover_test.rb index d07faf55..6c3f731d 100644 --- a/test/ruby_lsp_rails/hover_test.rb +++ b/test/ruby_lsp_rails/hover_test.rb @@ -7,18 +7,12 @@ module RubyLsp module Rails class HoverTest < ActiveSupport::TestCase setup do - @message_queue = Thread::Queue.new - # Build the Rails documents index ahead of time capture_io do Support::RailsDocumentClient.send(:search_index) end end - teardown do - @message_queue.close - end - test "hook returns model column information" do expected_response = { schema_file: "#{dummy_root}/db/schema.rb",