From ae68e5c71ec0b3c046368e178e6e6340830d947c Mon Sep 17 00:00:00 2001 From: Theo Truong Date: Thu, 12 Dec 2024 12:02:32 -0700 Subject: [PATCH] # Signed-off-by: Theo Truong --- spec/spec_helper.rb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 1f9750be2..019f33093 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -29,6 +29,7 @@ SimpleCov.start { add_filter %r{^/test|spec/} } end +require 'active_support' require 'ansi' require 'opensearch' require 'opensearch-dsl' @@ -99,22 +100,6 @@ class NotFound < StandardError; end module HelperModule def self.included(context) - # context.let(:client_double) do - # Class.new { include OpenSearch::API }.new.tap do |client| - # expect(client).to receive(:perform_request).with(*expected_args).and_return(response_double) - # end - # end - # - # context.let(:client) do - # Class.new { include OpenSearch::API }.new.tap do |client| - # expect(client).to receive(:perform_request).with(*expected_args).and_return(response_double) - # end - # end - # - # context.let(:response_double) do - # double('response', status: 200, body: {}, headers: {}) - # end - context.let(:hosts) { OPENSEARCH_HOSTS } end end