typoed_email_validator: add new endings to the typo list
This commit is contained in:
parent
7c1057acb3
commit
a59bc3ef92
|
@ -19,6 +19,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
|
|||
gmaile.com
|
||||
gmaill.com
|
||||
gmali.com
|
||||
gmaul.com
|
||||
gnail.com
|
||||
hotamil.com
|
||||
hotmai.com
|
||||
|
|
|
@ -93,6 +93,7 @@ RSpec.describe User, type: :model do
|
|||
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@gmaul.com"
|
||||
include_examples "invalid email", "fritz.fantom@gnail.com"
|
||||
include_examples "invalid email", "fritz.fantom@hotamil.com"
|
||||
include_examples "invalid email", "fritz.fantom@hotmai.com"
|
||||
|
|
Loading…
Reference in New Issue