typoed_email_validator: add new ending to the typo list
This commit is contained in:
parent
fdd8bf7962
commit
6f2c2654a1
|
@ -17,6 +17,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
|
||||||
gmaill.com
|
gmaill.com
|
||||||
gmali.com
|
gmali.com
|
||||||
hotmaill.com
|
hotmaill.com
|
||||||
|
iclould.com
|
||||||
icluod.com
|
icluod.com
|
||||||
].map { "@#{_1}" }
|
].map { "@#{_1}" }
|
||||||
].freeze
|
].freeze
|
||||||
|
|
|
@ -85,6 +85,7 @@ RSpec.describe User, type: :model do
|
||||||
include_examples "invalid email", "fritz.fantom@gmali.com"
|
include_examples "invalid email", "fritz.fantom@gmali.com"
|
||||||
include_examples "invalid email", "fritz.fantom@hotmailcom"
|
include_examples "invalid email", "fritz.fantom@hotmailcom"
|
||||||
include_examples "invalid email", "fritz.fantom@hotmaill.com"
|
include_examples "invalid email", "fritz.fantom@hotmaill.com"
|
||||||
|
include_examples "invalid email", "fritz.fantom@iclould.com"
|
||||||
include_examples "invalid email", "fritz.fantom@icluod.com"
|
include_examples "invalid email", "fritz.fantom@icluod.com"
|
||||||
# no TLD
|
# no TLD
|
||||||
include_examples "invalid email", "fritz.fantom@gmail"
|
include_examples "invalid email", "fritz.fantom@gmail"
|
||||||
|
|
Loading…
Reference in New Issue