forked from RailsApps/rails-stripe-membership-saas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue RailsApps#39 (and add tests)
- Loading branch information
1 parent
fcf96f9
commit 053c04f
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Feature: Edit User | ||
As a registered user of the website | ||
I want to delete my user profile | ||
so I can close my account | ||
|
||
@javascript | ||
Scenario: I sign in and delete my account | ||
Given I am logged in | ||
When I delete my account | ||
Then I should see an account deleted message | ||
|
||
@javascript | ||
Scenario: I create a new subscription and delete my account | ||
Given: I am on the home page | ||
When I follow the subscribe for silver path | ||
Then I should see "Silver Subscription Plan" | ||
Given I fill in the following: | ||
| Name | Testy ShortLived | | ||
| Email | short@testing.com | | ||
| 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 | ||
When I delete my account | ||
Then I should see an account deleted message |