Skip to content

Commit

Permalink
Remove obsolete test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Apr 3, 2024
1 parent 773300a commit c5b2f8e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 30 deletions.
8 changes: 0 additions & 8 deletions test/ruby_lsp_rails/code_lens_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions test/ruby_lsp_rails/definition_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions test/ruby_lsp_rails/document_symbol_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions test/ruby_lsp_rails/hover_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c5b2f8e

Please sign in to comment.