Skip to content

Commit cf52619

Browse files
committed
Remove redundant testing
1 parent 484bc04 commit cf52619

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

spec/enterprise-search/client_spec.rb

-16
Original file line numberDiff line numberDiff line change
@@ -109,28 +109,12 @@ def messages; @strio.string; end
109109
let(:client) { described_class.new }
110110
let(:adapter) { client.transport.transport.connections.all.first.connection.builder.adapter }
111111

112-
context 'when no adapter is specified' do
113-
it 'uses Faraday NetHttp' do
114-
expect(adapter).to eq Faraday::Adapter::NetHttp
115-
end
116-
end
117-
118112
context 'when the adapter is patron' do
119113
let(:client) { described_class.new(adapter: :patron) }
120114

121115
it 'uses Faraday with the adapter' do
122116
expect(adapter).to eq Faraday::Adapter::Patron
123117
end
124118
end
125-
126-
unless defined?(JRUBY_VERSION)
127-
context 'when the adapter is typhoeus' do
128-
let(:client) { described_class.new(adapter: :patron) }
129-
130-
it 'uses Faraday with the adapter' do
131-
expect(adapter).to eq Faraday::Adapter::Patron
132-
end
133-
end
134-
end
135119
end
136120
end

spec/workplace-search/client_spec.rb

-16
Original file line numberDiff line numberDiff line change
@@ -101,28 +101,12 @@
101101
let(:client) { described_class.new }
102102
let(:adapter) { client.transport.transport.connections.all.first.connection.builder.adapter }
103103

104-
context 'when no adapter is specified' do
105-
it 'uses Faraday NetHttp' do
106-
expect(adapter).to eq Faraday::Adapter::NetHttp
107-
end
108-
end
109-
110104
context 'when the adapter is patron' do
111105
let(:client) { described_class.new(adapter: :patron) }
112106

113107
it 'uses Faraday with the adapter' do
114108
expect(adapter).to eq Faraday::Adapter::Patron
115109
end
116110
end
117-
118-
unless defined?(JRUBY_VERSION)
119-
context 'when the adapter is typhoeus' do
120-
let(:client) { described_class.new(adapter: :patron) }
121-
122-
it 'uses Faraday with the adapter' do
123-
expect(adapter).to eq Faraday::Adapter::Patron
124-
end
125-
end
126-
end
127111
end
128112
end

0 commit comments

Comments
 (0)