Skip to content

Commit 8dd6e5f

Browse files
committed
Update references to deprecated Faraday errors
1 parent 45e2b08 commit 8dd6e5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/zendesk_api/middleware/response/raise_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Response
66
class RaiseError < Faraday::Response::RaiseError
77
def call(env)
88
super
9-
rescue Faraday::Error::TimeoutError, Faraday::Error::ConnectionFailed => e
9+
rescue Faraday::TimeoutError, Faraday::ConnectionFailed => e
1010
raise Error::NetworkError.new(e, env)
1111
end
1212

spec/core/middleware/response/raise_error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
context "with a failed connection" do
55
context "connection failed" do
66
before(:each) do
7-
stub_request(:any, /.*/).to_raise(Faraday::Error::ConnectionFailed)
7+
stub_request(:any, /.*/).to_raise(Faraday::ConnectionFailed)
88
end
99

1010
it "should raise NetworkError" do

0 commit comments

Comments
 (0)