To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorUser signs up with stripe
Note: you must have stripe setup with silver plan
for these tests to run correctly.
-
Background
Given: I am on the home page
-
- When
- I follow the subscribe for silver path
- Then
- I should see "Silver Subscription Plan"
- Scenarios
-
- With valid card data
-
- Given
-
I fill in the following:
Name Testy McUserson Email [email protected] user_password secret_password user_password_confirmation secret_password Credit Card Number 4242424242424242 card_code 111 - Then
- I select "5 - May" as the "month"
- And
- I select "2015" as the "year"
- When
- I press "Sign up"
- Then
- I should be on the "content silver" page
- And
- I should see a successful sign up message
- With invalid card number
-
- Given
-
I fill in the following:
Name Testy McBadCard Email [email protected] user_password secret_password user_password_confirmation secret_password Credit Card Number 5555555555555 card_code 111 - Then
- I select "1 - January" as the "month"
- And
- I select "2016" as the "year"
- When
- I press "Sign up"
- Then
- I should be on the new silver user registration page
- And
- I should see "Your card number is incorrect"
- With invalid card security code
-
- Given
-
I fill in the following:
Name Testy McBadCode Email [email protected] user_password secret_password user_password_confirmation secret_password Credit Card Number 4242424242424242 card_code 6 - Then
- I select "10 - October" as the "month"
- And
- I select "2016" as the "year"
- When
- I press "Sign up"
- Then
- I should be on the new silver user registration page
- And
- I should see "Your card's security code is invalid"
- With declined card
-
- Given
-
I fill in the following:
Name Testy McDecline Email [email protected] user_password secret_password user_password_confirmation secret_password Credit Card Number 4000000000000002 card_code 111 - Then
- I select "10 - October" as the "month"
- And
- I select "2016" as the "year"
- When
- I press "Sign up"
- Then
- I should be on the "user registration" page
- And
- I should see "declined"
Last published over 7 years ago by elgalu.