File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 94
94
it 'uses Faraday NetHttp' do
95
95
Object . send ( :remove_const , :Typhoeus ) if defined? ( Typhoeus )
96
96
expect ( adapter ) . to eq Faraday ::Adapter ::NetHttp
97
+ if Gem ::Version . new ( Faraday ::VERSION ) >= Gem ::Version . new ( 2 )
98
+ require 'faraday/typhoeus'
99
+ else
100
+ require 'faraday'
101
+ end
97
102
end
98
103
end
99
104
Original file line number Diff line number Diff line change @@ -112,6 +112,11 @@ def messages; @strio.string; end
112
112
it 'uses Faraday NetHttp' do
113
113
Object . send ( :remove_const , :Typhoeus ) if defined? ( Typhoeus )
114
114
expect ( adapter ) . to eq Faraday ::Adapter ::NetHttp
115
+ if Gem ::Version . new ( Faraday ::VERSION ) >= Gem ::Version . new ( 2 )
116
+ require 'faraday/typhoeus'
117
+ else
118
+ require 'faraday'
119
+ end
115
120
end
116
121
end
117
122
Original file line number Diff line number Diff line change 105
105
it 'uses Faraday NetHttp' do
106
106
Object . send ( :remove_const , :Typhoeus ) if defined? ( Typhoeus )
107
107
expect ( adapter ) . to eq Faraday ::Adapter ::NetHttp
108
+ if Gem ::Version . new ( Faraday ::VERSION ) >= Gem ::Version . new ( 2 )
109
+ require 'faraday/typhoeus'
110
+ else
111
+ require 'faraday'
112
+ end
108
113
end
109
114
end
110
115
You can’t perform that action at this time.
0 commit comments