test/stripe/api_resource_test.rb in stripe-1.52.0 vs test/stripe/api_resource_test.rb in stripe-1.53.0
- old
+ new
@@ -721,10 +721,9 @@
end
should 'retry failed network requests if specified and return successful response' do
Stripe.expects(:sleep_time).at_least_once.returns(0)
response = make_response({"id" => "myid"})
- err = Errno::ECONNREFUSED.new
@mock.expects(:post).times(2).with('https://api.stripe.com/v1/charges', nil, 'amount=50¤cy=usd').
raises(Errno::ECONNREFUSED.new).
then.
returns(response)