-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
context "when the password & password confirmation doesn't match up" do | ||
it "does not create a new user" do | ||
find_dti("email_field").set("[email protected]") | ||
find_dti("password_field").set("hello") | ||
find_dti("password_confirmation_field").set("world") | ||
find_dti("password_field").set("hellohello") | ||
find_dti("password_confirmation_field").set("worldworld") | ||
find_dti("sign_up_button").click | ||
|
||
expect(page).to have_content("Password confirmation doesn't match Password") | ||
|
@@ -27,17 +27,6 @@ | |
end | ||
end | ||
|
||
context "when the password doesn't met the length criteria" do | ||
it "does not create a new user" do | ||
find_dti("email_field").set("[email protected]") | ||
find_dti("password_field").set("foobar") | ||
find_dti("password_confirmation_field").set("foobar") | ||
find_dti("sign_up_button").click | ||
|
||
expect(page).to have_content("Password is too short (minimum is 8 characters)") | ||
end | ||
end | ||
|
||
context "when the user inputs valid credentials" do | ||
it "creates a new user" do | ||
find_dti("email_field").set("[email protected]") | ||
|