From 42f9a64c54e0bf709a3dfc7931d6e55e389e1aac Mon Sep 17 00:00:00 2001 From: Mike Patrick Date: Fri, 22 Sep 2023 11:11:19 +0100 Subject: [PATCH] Fix copy-paste mishap in test setup It's testing the wrong thing --- test/models/user_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/models/user_test.rb b/test/models/user_test.rb index e5d4de75b..f2bc59b6c 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -285,7 +285,7 @@ def setup end should "not allow user to be updated with a known non-government email address" do - user = create(:batch_invitation_user, email: "alexia.statham@department.gov.uk") + user = create(:user, email: "alexia.statham@department.gov.uk") user.email = "alexia.statham@yahoo.co.uk"