diff --git a/app/validators/typoed_email_validator.rb b/app/validators/typoed_email_validator.rb index bf1ab874..90962bb3 100644 --- a/app/validators/typoed_email_validator.rb +++ b/app/validators/typoed_email_validator.rb @@ -17,6 +17,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator gmaill.com gmali.com hotmaill.com + iclould.com icluod.com ].map { "@#{_1}" } ].freeze diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 8f285192..2bf6fbb6 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -85,6 +85,7 @@ RSpec.describe User, type: :model do include_examples "invalid email", "fritz.fantom@gmali.com" include_examples "invalid email", "fritz.fantom@hotmailcom" include_examples "invalid email", "fritz.fantom@hotmaill.com" + include_examples "invalid email", "fritz.fantom@iclould.com" include_examples "invalid email", "fritz.fantom@icluod.com" # no TLD include_examples "invalid email", "fritz.fantom@gmail"