typoed_email_validator: add new endings to the typo list
This commit is contained in:
Georg Gadinger 2023-03-09 21:22:43 +01:00 committed by GitHub
commit 077e4f6e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
gmali.com
gmaul.com
gnail.com
hornail.com
hotamil.com
hotmai.com
hotmaill.com

View File

@ -130,6 +130,7 @@ RSpec.describe User, type: :model do
include_examples "invalid email", "fritz.fantom@gmali.com"
include_examples "invalid email", "fritz.fantom@gmaul.com"
include_examples "invalid email", "fritz.fantom@gnail.com"
include_examples "invalid email", "fritz.fantom@hornail.com"
include_examples "invalid email", "fritz.fantom@hotamil.com"
include_examples "invalid email", "fritz.fantom@hotmai.com"
include_examples "invalid email", "fritz.fantom@hotmailcom"