Merge pull request #461 from stripe/brandur-fix-warnings

Fix interpreter warnings
This commit is contained in:
Brandur 2016-08-31 08:09:19 -07:00 committed by GitHub
commit 5039d22339
2 changed files with 3 additions and 4 deletions

View File

@ -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&currency=usd').
raises(Errno::ECONNREFUSED.new).
then.

View File

@ -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