Skip to content
This repository
Browse code

Ensure next billing date is 1 month from now.

  • Loading branch information...
commit 84cfbc4ff872b139b3adb4d003062786eb0fec0e 1 parent ad7a4b9
Gabe Berke-Williams authored November 03, 2011

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. 7  spec/fake_braintree/subscription_spec.rb
7  spec/fake_braintree/subscription_spec.rb
@@ -29,6 +29,13 @@
29 29
 
30 30
       first_result.subscription.id.should_not == second_result.subscription.id
31 31
     end
  32
+
  33
+    it "sets the next billing date to 1 month from now in UTC" do
  34
+      result = Braintree::Subscription.create(:payment_method_token => payment_method_token,
  35
+                                              :plan_id => plan_id)
  36
+
  37
+      result.subscription.next_billing_date.to_i.should == 1.month.from_now.utc.to_i
  38
+    end
32 39
   end
33 40
 
34 41
   context "Braintree::Subscription.find" do

0 notes on commit 84cfbc4

Please sign in to comment.
Something went wrong with that request. Please try again.