Skip to content

Commit

Permalink
update verification code spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Proebstel committed Feb 7, 2025
1 parent 2ae0900 commit 1e0bea2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 1e0bea2

Please sign in to comment.