Hack in registration prevention (#37)
All checks were successful
Deploy / deploy (push) Successful in 4m1s
All checks were successful
Deploy / deploy (push) Successful in 4m1s
Reviewed-on: #37
This commit is contained in:
parent
eaa1846d42
commit
543a9599e0
4 changed files with 32 additions and 14 deletions
|
@ -15,12 +15,14 @@ class UsersTest < ApplicationSystemTestCase
|
|||
visit users_url
|
||||
click_on "Sign up"
|
||||
|
||||
fill_in "Email", with: "userthree@example.local"
|
||||
fill_in "Password", with: "secret"
|
||||
fill_in "Password confirmation", with: "secret"
|
||||
click_on "Create User"
|
||||
stub_environment(REGISTRATION_ALLOWED: "true") do
|
||||
fill_in "Email", with: "userthree@example.local"
|
||||
fill_in "Password", with: "secret"
|
||||
fill_in "Password confirmation", with: "secret"
|
||||
click_on "Create User"
|
||||
|
||||
assert_text "User was successfully created"
|
||||
assert_text "User was successfully created"
|
||||
end
|
||||
click_on "Back"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue