test/test_helper.rb in stripe-1.8.8 vs test/test_helper.rb in stripe-1.9.9
- old
+ new
@@ -68,9 +68,32 @@
:object => "list",
:url => "/v1/balance/history"
}
end
+def test_application_fee(params={})
+ {
+ :refunded => false,
+ :amount => 100,
+ :application => "ca_test_application",
+ :user => "acct_test_user",
+ :charge => "ch_test_charge",
+ :id => "fee_test_fee",
+ :livemode => false,
+ :currency => "usd",
+ :object => "application_fee",
+ :created => 1304114826
+ }.merge(params)
+end
+
+def test_application_fee_array
+ {
+ :data => [test_application_fee, test_application_fee, test_application_fee],
+ :object => 'list',
+ :url => '/v1/application_fees'
+ }
+end
+
def test_customer(params={})
{
:subscription_history => [],
:bills => [],
:charges => [],