diff --git a/app/validators/typoed_email_validator.rb b/app/validators/typoed_email_validator.rb index 00830a9a..732b7a18 100644 --- a/app/validators/typoed_email_validator.rb +++ b/app/validators/typoed_email_validator.rb @@ -14,6 +14,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator gmail.co gmaile.com gmaill.com + gmali.com icluod.com proton.mail ].map { "@#{_1}" } diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 09e89e3a..b654d385 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -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