mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-05 00:01:07 -04:00
Merge pull request #461 from stripe/brandur-fix-warnings
Fix interpreter warnings
This commit is contained in:
commit
5039d22339
@ -723,7 +723,6 @@ module Stripe
|
||||
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.
|
||||
|
@ -7,7 +7,7 @@ module Stripe
|
||||
customer = Stripe::Customer.retrieve('c_test_customer')
|
||||
|
||||
@mock.expects(:get).once.with("#{Stripe.api_base}/v1/customers/c_test_customer/subscriptions/s_test_subscription", nil, nil).returns(make_response(make_subscription(:id => 's_test_subscription')))
|
||||
subscription = customer.subscriptions.retrieve('s_test_subscription')
|
||||
_ = customer.subscriptions.retrieve('s_test_subscription')
|
||||
end
|
||||
|
||||
should "subscriptions should be listable by customer" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user