This commit is contained in:
Brian Krausz 2015-02-18 12:27:47 -08:00
parent 9a82f7d1ba
commit cedc3bbad5

View File

@ -25,7 +25,7 @@ module Stripe
should "pay with extra opts should pay an invoice" do
@mock.expects(:get).once.returns(test_response(test_invoice))
i = Stripe::Invoice.retrieve('in_test_invoice', {api_key: 'foobar'})
i = Stripe::Invoice.retrieve('in_test_invoice', {:api_key => 'foobar'})
Stripe.expects(:execute_request).with do |opts|
opts[:url] == "#{Stripe.api_base}/v1/invoices/in_test_invoice/pay" &&