Permalink
Browse files

Be more explicit in the test.

  • Loading branch information...
1 parent 1b1a532 commit a23a61c704859d9d16af76a8cd99fa026edf83d5 @gabebw gabebw committed Nov 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/fake_braintree/subscription_spec.rb
@@ -5,14 +5,14 @@
let(:expiration_date) { "04/2016" }
it "successfully creates a subscription" do
- create_subscription.should be_success
+ Braintree::Subscription.create(:payment_method_token => cc_token,
+ :plan_id => 'my_plan_id').should be_success
end
it "assigns a Braintree-esque ID to the subscription" do
create_subscription.subscription.id.should =~ /^[a-z0-9]{6}$/
end
-
it "assigns unique IDs to each subscription" do
cc_token_1 = cc_token
cc_token_2 = braintree_credit_card_token(TEST_CC_NUMBER.sub('1', '5'), expiration_date)

0 comments on commit a23a61c

Please sign in to comment.