mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 15:35:22 +02:00
fix test
This commit is contained in:
parent
e1808474ed
commit
123567621e
1 changed files with 4 additions and 8 deletions
|
@ -9,8 +9,7 @@ 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: "Password1!" } }
|
||||
|
||||
assert_redirected_to root_url
|
||||
end
|
||||
|
@ -20,14 +19,12 @@ 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: "Password1!" } }
|
||||
assert_redirected_to new_registration_url
|
||||
|
||||
post registration_url, params: { user: {
|
||||
email: "john@example.com",
|
||||
password: "password",
|
||||
password_confirmation: "password",
|
||||
password: "Password1!",
|
||||
invite_code: "foo" } }
|
||||
assert_redirected_to new_registration_url
|
||||
end
|
||||
|
@ -35,8 +32,7 @@ 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: "Password1!",
|
||||
invite_code: InviteCode.generate! } }
|
||||
assert_redirected_to root_url
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue