-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
b23552a
commit b767c4e
Showing
2 changed files
with
4 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class Users::RegistrationsController < Devise::RegistrationsController | ||
invisible_captcha only: [:create] | ||
invisible_captcha only: [:create] unless Rails.env.test? | ||
end |
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 |
---|---|---|
|
@@ -8,9 +8,11 @@ class SignUpTest < ApplicationSystemTestCase | |
fill_in "Email", with: "[email protected]" | ||
fill_in "Password", with: "password123", match: :prefer_exact | ||
fill_in "Password confirmation", with: "password123" | ||
sleep 4 # The invisible_captcha bot protection will kick in if this is too quick | ||
|
||
click_on "Get Started" | ||
|
||
assert_text "A message with a confirmation link has been sent to your email address." | ||
|
||
user = User.last | ||
assert_equal user.email, "[email protected]" | ||
|
||
|