mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-09 00:03:05 -04:00
Merge pull request #351 from stripe/brandur-refund-url-correction
Correct URL used for refunding application fees
This commit is contained in:
commit
02f68e45e7
@ -14,7 +14,7 @@ module Stripe
|
|||||||
private
|
private
|
||||||
|
|
||||||
def refund_url
|
def refund_url
|
||||||
url + '/refund'
|
url + '/refunds'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -13,7 +13,9 @@ module Stripe
|
|||||||
|
|
||||||
should "application fees should be refundable" do
|
should "application fees should be refundable" do
|
||||||
@mock.expects(:get).never
|
@mock.expects(:get).never
|
||||||
@mock.expects(:post).once.returns(make_response({:id => "fee_test_fee", :refunded => true}))
|
@mock.expects(:post).once.
|
||||||
|
with("#{Stripe.api_base}/v1/application_fees/test_application_fee/refunds", nil, '').
|
||||||
|
returns(make_response({:id => "fee_test_fee", :refunded => true}))
|
||||||
fee = Stripe::ApplicationFee.new("test_application_fee")
|
fee = Stripe::ApplicationFee.new("test_application_fee")
|
||||||
fee.refund
|
fee.refund
|
||||||
assert fee.refunded
|
assert fee.refunded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user