Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Be more explicit in the test.

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