Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure next billing date is 1 month from now.

  • Loading branch information...
commit 84cfbc4ff872b139b3adb4d003062786eb0fec0e 1 parent ad7a4b9
@gabebw gabebw authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/fake_braintree/subscription_spec.rb
View
7 spec/fake_braintree/subscription_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.