Skip to content

Commit

Permalink
Only require necessary parts of ruby-lsp in test
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Dec 17, 2024
1 parent f73556c commit bac9a1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/addon_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
ENV["RAILS_ENV"] = "test"

require "minitest/spec"
require "ruby_lsp/internal"
require "ruby_lsp/test_helper"
require "minitest/autorun"
require "sorbet-runtime"
require "language_server-protocol"
require "ruby_lsp/utils"

module ActiveSupport
class TestCase
include RubyLsp::TestHelper

def pop_result(server)
result = server.pop_response
result = server.pop_response until result.is_a?(RubyLsp::Result) || result.is_a?(RubyLsp::Error)
Expand Down

0 comments on commit bac9a1c

Please sign in to comment.