diff --git a/lib/ruby_lsp/test_helper.rb b/lib/ruby_lsp/test_helper.rb index ccf428721..d9cb5beed 100644 --- a/lib/ruby_lsp/test_helper.rb +++ b/lib/ruby_lsp/test_helper.rb @@ -21,6 +21,7 @@ def with_server(source = nil, uri = Kernel.URI("file:///fake.rb"), stub_no_typec &block) server = RubyLsp::Server.new(test_mode: true) server.global_state.stubs(:typechecker).returns(false) if stub_no_typechecker + server.global_state.apply_options({}) if source server.process_message({