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"