diff --git a/spec/forms/state_file/archived_intakes/verification_code_form_spec.rb b/spec/forms/state_file/archived_intakes/verification_code_form_spec.rb index 85b45165b0..798c53ca4e 100644 --- a/spec/forms/state_file/archived_intakes/verification_code_form_spec.rb +++ b/spec/forms/state_file/archived_intakes/verification_code_form_spec.rb @@ -37,7 +37,7 @@ allow(EmailAccessToken).to receive_message_chain(:lookup, :exists?).and_return(false) expect(form.valid?).to be false - expect(form.errors[:verification_code]).to include("Incorrect verification code. After 2 failed attempts, accounts are locked.") + expect(form.errors[:verification_code]).to include("Please enter a valid code") end end @@ -49,7 +49,7 @@ } it "adds an error and returns false" do expect(form.valid?).to be false - expect(form.errors[:verification_code]).to include("Incorrect verification code. After 2 failed attempts, accounts are locked.") + expect(form.errors[:verification_code]).to include("Please enter a valid code") end end end