test/test_data.rb in stripe-1.24.0 vs test/test_data.rb in stripe-1.25.0

- old
+ new

@@ -282,14 +282,16 @@ :object => 'list', :url => '/v1/customers/' + customer_id + '/subscriptions' } end - def make_refund_array(charge_id) + def make_refund_array(charge=nil) + p = charge ? {:charge => charge} : {} + { - :data => [make_refund, make_refund, make_refund], + :data => [make_refund(p), make_refund(p), make_refund(p)], :object => 'list', - :url => '/v1/charges/' + charge_id + '/refunds' + :url => charge ? "/v1/charges/#{charge}/refunds" : '/v1/refunds' } end def make_reversal_array(transfer_id) {