Skip to content

Commit

Permalink
Remove redundant testing
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Sep 11, 2024
1 parent 484bc04 commit cf52619
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
16 changes: 0 additions & 16 deletions spec/enterprise-search/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,28 +109,12 @@ 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) }

it 'uses Faraday with the adapter' do
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
16 changes: 0 additions & 16 deletions spec/workplace-search/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,12 @@
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) }

it 'uses Faraday with the adapter' do
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

0 comments on commit cf52619

Please sign in to comment.