From cf52619af95d6392c36e828a226dc9603da7b44d Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 11 Sep 2024 15:25:22 +0100 Subject: [PATCH] Remove redundant testing --- spec/enterprise-search/client_spec.rb | 16 ---------------- spec/workplace-search/client_spec.rb | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/spec/enterprise-search/client_spec.rb b/spec/enterprise-search/client_spec.rb index 1c908caa..dd1b3b89 100644 --- a/spec/enterprise-search/client_spec.rb +++ b/spec/enterprise-search/client_spec.rb @@ -109,12 +109,6 @@ def messages; @strio.string; end let(:client) { described_class.new } let(:adapter) { client.transport.transport.connections.all.first.connection.builder.adapter } - context 'when no adapter is specified' do - it 'uses Faraday NetHttp' do - expect(adapter).to eq Faraday::Adapter::NetHttp - end - end - context 'when the adapter is patron' do let(:client) { described_class.new(adapter: :patron) } @@ -122,15 +116,5 @@ def messages; @strio.string; end expect(adapter).to eq Faraday::Adapter::Patron end end - - unless defined?(JRUBY_VERSION) - context 'when the adapter is typhoeus' do - let(:client) { described_class.new(adapter: :patron) } - - it 'uses Faraday with the adapter' do - expect(adapter).to eq Faraday::Adapter::Patron - end - end - end end end diff --git a/spec/workplace-search/client_spec.rb b/spec/workplace-search/client_spec.rb index abd0a41c..ace90225 100644 --- a/spec/workplace-search/client_spec.rb +++ b/spec/workplace-search/client_spec.rb @@ -101,12 +101,6 @@ let(:client) { described_class.new } let(:adapter) { client.transport.transport.connections.all.first.connection.builder.adapter } - context 'when no adapter is specified' do - it 'uses Faraday NetHttp' do - expect(adapter).to eq Faraday::Adapter::NetHttp - end - end - context 'when the adapter is patron' do let(:client) { described_class.new(adapter: :patron) } @@ -114,15 +108,5 @@ expect(adapter).to eq Faraday::Adapter::Patron end end - - unless defined?(JRUBY_VERSION) - context 'when the adapter is typhoeus' do - let(:client) { described_class.new(adapter: :patron) } - - it 'uses Faraday with the adapter' do - expect(adapter).to eq Faraday::Adapter::Patron - end - end - end end end