mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 23:45:21 +02:00
fixe password tests
This commit is contained in:
parent
6c6857b4e0
commit
af319f96b5
2 changed files with 9 additions and 9 deletions
|
@ -24,7 +24,7 @@ class PasswordResetsControllerTest < ActionDispatch::IntegrationTest
|
|||
|
||||
test "update" do
|
||||
patch password_reset_path(token: @user.generate_token_for(:password_reset)),
|
||||
params: { user: { password: "password", password_confirmation: "password" } }
|
||||
params: { user: { password: "P4$sword", password_confirmation: "P4$sword" } }
|
||||
assert_redirected_to new_session_url
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,8 +9,8 @@ class RegistrationsControllerTest < ActionDispatch::IntegrationTest
|
|||
test "create redirects to correct URL" do
|
||||
post registration_url, params: { user: {
|
||||
email: "john@example.com",
|
||||
password: "password",
|
||||
password_confirmation: "password" } }
|
||||
password: "P4$sword",
|
||||
password_confirmation: "P4$sword" } }
|
||||
|
||||
assert_redirected_to root_url
|
||||
end
|
||||
|
@ -20,14 +20,14 @@ class RegistrationsControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_no_difference "User.count" do
|
||||
post registration_url, params: { user: {
|
||||
email: "john@example.com",
|
||||
password: "password",
|
||||
password_confirmation: "password" } }
|
||||
password: "P4$sword",
|
||||
password_confirmation: "P4$sword" } }
|
||||
assert_redirected_to new_registration_url
|
||||
|
||||
post registration_url, params: { user: {
|
||||
email: "john@example.com",
|
||||
password: "password",
|
||||
password_confirmation: "password",
|
||||
password: "P4$sword",
|
||||
password_confirmation: "P4$sword",
|
||||
invite_code: "foo" } }
|
||||
assert_redirected_to new_registration_url
|
||||
end
|
||||
|
@ -35,8 +35,8 @@ class RegistrationsControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_difference "User.count", +1 do
|
||||
post registration_url, params: { user: {
|
||||
email: "john@example.com",
|
||||
password: "password",
|
||||
password_confirmation: "password",
|
||||
password: "P4$sword",
|
||||
password_confirmation: "P4$sword",
|
||||
invite_code: InviteCode.generate! } }
|
||||
assert_redirected_to root_url
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue