spec/lib/connection_spec.rb in flexirest-1.8.7 vs spec/lib/connection_spec.rb in flexirest-1.8.8

- old
+ new

@@ -184,10 +184,10 @@ expect(result.env.request_headers['Content-MD5']).to eq("hBotaJrYa9FhFEdFPCLG/A==") 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")) + stub_request(:get, "www.example.com/foo").to_raise(Faraday::ConnectionFailed.new("Foo")) 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