-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply changes for turbo_stream compatibility
- Loading branch information
1 parent
6d32d24
commit 2d1ae92
Showing
16 changed files
with
60 additions
and
30 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
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
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
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 |
---|---|---|
|
@@ -76,7 +76,7 @@ def reset_password(options = {}, &block) | |
fill_in 'email', with: '[email protected]' | ||
end | ||
|
||
assert_response :success | ||
assert_response :unprocessable_entity | ||
assert_current_url '/users/password' | ||
assert_have_selector "input[type=email][value='[email protected]']" | ||
assert_contain 'not found' | ||
|
@@ -102,7 +102,7 @@ def reset_password(options = {}, &block) | |
fill_in 'email', with: ' [email protected] ' | ||
end | ||
|
||
assert_response :success | ||
assert_response :unprocessable_entity | ||
assert_current_url '/users/password' | ||
assert_have_selector "input[type=email][value=' [email protected] ']" | ||
assert_contain 'not found' | ||
|
@@ -132,7 +132,7 @@ def reset_password(options = {}, &block) | |
fill_in 'email', with: '[email protected]' | ||
end | ||
|
||
assert_response :success | ||
assert_response :unprocessable_entity | ||
assert_current_url '/users/password' | ||
assert_have_selector "input[type=email][value='[email protected]']" | ||
assert_contain 'not found' | ||
|
@@ -156,7 +156,7 @@ def reset_password(options = {}, &block) | |
user = create_user | ||
reset_password reset_password_token: 'invalid_reset_password' | ||
|
||
assert_response :success | ||
assert_response :unprocessable_entity | ||
assert_current_url '/users/password' | ||
assert_have_selector '#error_explanation' | ||
assert_contain %r{Reset password token(.*)invalid} | ||
|
@@ -170,7 +170,7 @@ def reset_password(options = {}, &block) | |
fill_in 'Confirm new password', with: 'other_password' | ||
end | ||
|
||
assert_response :success | ||
assert_response :unprocessable_entity | ||
assert_current_url '/users/password' | ||
assert_have_selector '#error_explanation' | ||
assert_contain "Password confirmation doesn't match Password" | ||
|
@@ -192,7 +192,7 @@ def reset_password(options = {}, &block) | |
request_forgot_password | ||
|
||
reset_password { fill_in 'Confirm new password', with: 'other_password' } | ||
assert_response :success | ||
assert_response :unprocessable_entity | ||
assert_have_selector '#error_explanation' | ||
refute user.reload.valid_password?('987654321') | ||
|
||
|
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