From 392c767fe4db4a340c58fbfcfcee2002e7142caa Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 28 Apr 2022 13:46:32 -0400 Subject: [PATCH] Avoid redundant recovery PII encrypt in profile spec factory **Why**: Because `encrypt_recovery_pii` is already called as part of the preceding `encrypt_pii`. changelog: Internal, Automated Testing, Reduce redundancy in test data setup --- spec/factories/profiles.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/factories/profiles.rb b/spec/factories/profiles.rb index bad11c6f7e2..1b06be0a036 100644 --- a/spec/factories/profiles.rb +++ b/spec/factories/profiles.rb @@ -22,7 +22,6 @@ if evaluator.pii pii_attrs = Pii::Attributes.new_from_hash(evaluator.pii) profile.encrypt_pii(pii_attrs, profile.user.password) - profile.encrypt_recovery_pii(pii_attrs) end end end