diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ca8024077..1f9750be2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -99,27 +99,28 @@ 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(: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 RSpec.configure do |config| + config.include(HelperModule) config.formatter = 'documentation' config.color = true end