Skip to content

Commit

Permalink
Ensure next billing date is 1 month from now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 3, 2011
1 parent ad7a4b9 commit 84cfbc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/fake_braintree/subscription_spec.rb
Expand Up @@ -29,6 +29,13 @@

first_result.subscription.id.should_not == second_result.subscription.id
end

it "sets the next billing date to 1 month from now in UTC" do
result = Braintree::Subscription.create(:payment_method_token => payment_method_token,
:plan_id => plan_id)

result.subscription.next_billing_date.to_i.should == 1.month.from_now.utc.to_i
end
end

context "Braintree::Subscription.find" do
Expand Down

0 comments on commit 84cfbc4

Please sign in to comment.