File tree 2 files changed +0
-32
lines changed
2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -109,28 +109,12 @@ def messages; @strio.string; end
109
109
let ( :client ) { described_class . new }
110
110
let ( :adapter ) { client . transport . transport . connections . all . first . connection . builder . adapter }
111
111
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
-
118
112
context 'when the adapter is patron' do
119
113
let ( :client ) { described_class . new ( adapter : :patron ) }
120
114
121
115
it 'uses Faraday with the adapter' do
122
116
expect ( adapter ) . to eq Faraday ::Adapter ::Patron
123
117
end
124
118
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
135
119
end
136
120
end
Original file line number Diff line number Diff line change 101
101
let ( :client ) { described_class . new }
102
102
let ( :adapter ) { client . transport . transport . connections . all . first . connection . builder . adapter }
103
103
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
-
110
104
context 'when the adapter is patron' do
111
105
let ( :client ) { described_class . new ( adapter : :patron ) }
112
106
113
107
it 'uses Faraday with the adapter' do
114
108
expect ( adapter ) . to eq Faraday ::Adapter ::Patron
115
109
end
116
110
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
127
111
end
128
112
end
You can’t perform that action at this time.
0 commit comments