Hack in registration prevention (#37)
All checks were successful
Deploy / deploy (push) Successful in 4m1s

Reviewed-on: #37
This commit is contained in:
Andrew Tomaka 2024-09-08 22:18:56 -04:00
parent eaa1846d42
commit 543a9599e0
4 changed files with 32 additions and 14 deletions

View file

@ -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