typoed_email_validator: add new ending to the typo list
This commit is contained in:
parent
989f4a5132
commit
1997f89cc0
|
@ -14,6 +14,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
|
|||
gmail.co
|
||||
gmaile.com
|
||||
gmaill.com
|
||||
gmali.com
|
||||
icluod.com
|
||||
proton.mail
|
||||
].map { "@#{_1}" }
|
||||
|
|
|
@ -79,6 +79,7 @@ RSpec.describe User, type: :model do
|
|||
include_examples "invalid email", "fritz.fantom@gmailcom"
|
||||
include_examples "invalid email", "fritz.fantom@gmaile.com"
|
||||
include_examples "invalid email", "fritz.fantom@gmaill.com"
|
||||
include_examples "invalid email", "fritz.fantom@gmali.com"
|
||||
include_examples "invalid email", "fritz.fantom@hotmailcom"
|
||||
include_examples "invalid email", "fritz.fantom@icluod.com"
|
||||
# no TLD
|
||||
|
|
Loading…
Reference in New Issue