Fix tests - don't test standard rails features

This commit is contained in:
Dan Milne
2025-12-29 19:45:01 +11:00
parent 4c1df53fd5
commit 2a32d75895
5 changed files with 74 additions and 242 deletions

View File

@@ -49,7 +49,9 @@ class InvitationFlowTest < ActionDispatch::IntegrationTest
email_address: "newuser@example.com",
password: "SecurePassword123!"
}
assert_redirected_to root_path
# Redirect may include fa_token parameter for first-time authentication
assert_response :redirect
assert_match %r{^http://www\.example\.com/}, response.location
assert cookies[:session_id]
end