spec/support/factory.rb in recurly-0.3.3 vs spec/support/factory.rb in recurly-0.3.4

- old
+ new

@@ -43,10 +43,12 @@ end # returns a hash of billing information def self.billing_attributes(address_overrides = {}, credit_card_overrides = {}) attributes = { + :first_name => 'Verena', + :last_name => 'Test', :address1 => '123 Test St', :city => 'San Francisco', :state => 'CA', :zip => '94115', :country => "US", @@ -151,11 +153,11 @@ end def self.create_credit(account_code, attributes = {}) credit = Credit.new({ :account_code => account_code, - :amount => 10.00, + :amount_in_cents => 1000, :description => "free moniez" }.merge(attributes)) credit.save! credit end @@ -164,11 +166,11 @@ find_or_create_plan({ :plan_code => "trial", :name => "Trial", # 10 dollars a month - :unit_amount_in_cents => 1000, + :amount_in_cents => 1000, # 1 month intervals :plan_interval_length => 1, :plan_interval_unit => "months", @@ -182,10 +184,10 @@ find_or_create_plan({ :plan_code => "paid", :name => "Paid", # 10 dollars a month - :unit_amount_in_cents => 1000, + :amount_in_cents => 1000, # 1 month intervals :plan_interval_length => 1, :plan_interval_unit => "months", \ No newline at end of file