spec/lib/connection_spec.rb in flexirest-1.3.33 vs spec/lib/connection_spec.rb in flexirest-1.3.34
- old
+ new
@@ -185,15 +185,15 @@
end
end
it "should retry once in the event of a connection failed" do
stub_request(:get, "www.example.com/foo").to_raise(Faraday::Error::ConnectionFailed.new("Foo"))
- expect { @connection.get("/foo") }.to raise_error(Flexirest::ConnectionFailedException)
+ expect { @connection.get("/foo") }.to raise_error(Flexirest::BaseException)
end
it "should raise an exception on timeout" do
stub_request(:get, "www.example.com/foo").to_timeout
- expect { @connection.get("/foo") }.to raise_error(Flexirest::TimeoutException)
+ expect { @connection.get("/foo") }.to raise_error(Flexirest::BaseException)
end
it "should raise an exception on timeout" do
stub_request(:get, "www.example.com/foo").to_timeout
begin