diff --git a/app/validators/typoed_email_validator.rb b/app/validators/typoed_email_validator.rb index e529e1fb..f2f8e5d7 100644 --- a/app/validators/typoed_email_validator.rb +++ b/app/validators/typoed_email_validator.rb @@ -22,6 +22,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator gmali.com gmaul.com gnail.com + hornail.com hotamil.com hotmai.com hotmaill.com diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 01d3fc47..2981df53 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -130,6 +130,7 @@ RSpec.describe User, type: :model do 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@hornail.com" include_examples "invalid email", "fritz.fantom@hotamil.com" include_examples "invalid email", "fritz.fantom@hotmai.com" include_examples "invalid email", "fritz.fantom@hotmailcom"