typoed_email_validator: add new endings to the typo list
This commit is contained in:
Georg Gadinger 2023-01-29 19:20:35 +01:00 committed by GitHub
commit d4a1e7de28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
gmaile.com
gmaill.com
gmali.com
gmaul.com
gnail.com
hotamil.com
hotmai.com

View File

@ -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"