test/test_data.rb in stripe-1.41.0 vs test/test_data.rb in stripe-1.42.0

- old
+ new

@@ -116,11 +116,11 @@ :id => id, :default_card => "cc_test_card", :created => 1304114758, :sources => make_customer_card_array(id), :metadata => {}, - :subscriptions => make_subscription_array(id) + :subscriptions => make_customer_subscription_array(id) }.merge(params) end def make_customer_array { @@ -287,10 +287,18 @@ :charge => "ch_test_charge", :metadata => {} }.merge(params) end - def make_subscription_array(customer_id) + def make_subscription_array + { + :data => [make_subscription, make_subscription, make_subscription], + :object => 'list', + :resource_url => '/v1/subscriptions' + } + end + + def make_customer_subscription_array(customer_id) { :data => [make_subscription, make_subscription, make_subscription], :object => 'list', :resource_url => '/v1/customers/' + customer_id + '/subscriptions' }