Skip to content

Commit

Permalink
Be more explicit in the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 20, 2011
1 parent 1b1a532 commit a23a61c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/fake_braintree/subscription_spec.rb
Expand Up @@ -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)
Expand Down

0 comments on commit a23a61c

Please sign in to comment.