Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Dec 12, 2024
1 parent 0d15851 commit ae68e5c
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
SimpleCov.start { add_filter %r{^/test|spec/} }
end

require 'active_support'
require 'ansi'
require 'opensearch'
require 'opensearch-dsl'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ae68e5c

Please sign in to comment.