Merge pull request #640 from Retrospring/mc@g🎙.com

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

View File

@ -15,6 +15,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
gail.com gail.com
gamil.com gamil.com
gemail.com gemail.com
gmaik.com
gmail.cm gmail.cm
gmail.co gmail.co
gmaile.com gmaile.com

View File

@ -81,6 +81,7 @@ RSpec.describe User, type: :model do
include_examples "invalid email", "fritz.fantom@fmail.com" include_examples "invalid email", "fritz.fantom@fmail.com"
include_examples "invalid email", "fritz.fantom@gamil.com" include_examples "invalid email", "fritz.fantom@gamil.com"
include_examples "invalid email", "fritz.fantom@gemail.com" include_examples "invalid email", "fritz.fantom@gemail.com"
include_examples "invalid email", "fritz.fantom@gmaik.com"
include_examples "invalid email", "fritz.fantom@gmail.cm" include_examples "invalid email", "fritz.fantom@gmail.cm"
include_examples "invalid email", "fritz.fantom@gmail.co" include_examples "invalid email", "fritz.fantom@gmail.co"
include_examples "invalid email", "fritz.fantom@gmailcom" include_examples "invalid email", "fritz.fantom@gmailcom"