forked from multiscan/thot
-
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.
Trying to start writing tests with minitest
- Loading branch information
Showing
15 changed files
with
180 additions
and
142 deletions.
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
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
4 changes: 2 additions & 2 deletions
4
features/users/sign_out.feature → features/admins/sign_out.feature
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
14 changes: 7 additions & 7 deletions
14
features/users/sign_up.feature → features/admins/sign_up.feature
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
Feature: Sign up | ||
In order to get access to protected sections of the site | ||
As a user | ||
As a admin | ||
I want to be able to sign up | ||
|
||
Background: | ||
Given I am not logged in | ||
|
||
Scenario: User signs up with valid data | ||
When I sign up with valid user data | ||
Scenario: Admin signs up with valid data | ||
When I sign up with valid admin data | ||
Then I should see a message with confirmation instruction | ||
|
||
Scenario: User signs up with invalid email | ||
Scenario: Admin signs up with invalid email | ||
When I sign up with an invalid email | ||
Then I should be asked to correct errors in the submitted data | ||
And I should see an invalid email message | ||
|
||
Scenario: User signs up without password | ||
Scenario: Admin signs up without password | ||
When I sign up without a password | ||
Then I should be asked to correct errors in the submitted data | ||
And I should see a missing password message | ||
|
||
Scenario: User signs up without password confirmation | ||
Scenario: Admin signs up without password confirmation | ||
When I sign up without a password confirmation | ||
Then I should be asked to correct errors in the submitted data | ||
And I should see a missing password confirmation message | ||
|
||
Scenario: User signs up with mismatched password and confirmation | ||
Scenario: Admin signs up with mismatched password and confirmation | ||
When I sign up with a mismatched password confirmation | ||
Then I should be asked to correct errors in the submitted data | ||
And I should see a mismatched password message |
8 changes: 4 additions & 4 deletions
8
features/users/user_edit.feature → features/admins/user_edit.feature
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
Oops, something went wrong.