diff --git a/app/validators/typoed_email_validator.rb b/app/validators/typoed_email_validator.rb index 3decc3e3..4a4d7620 100644 --- a/app/validators/typoed_email_validator.rb +++ b/app/validators/typoed_email_validator.rb @@ -15,6 +15,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator gail.com gamil.com gemail.com + gmaik.com gmail.cm gmail.co gmaile.com diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index ab883a8f..642f844d 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -81,6 +81,7 @@ RSpec.describe User, type: :model do include_examples "invalid email", "fritz.fantom@fmail.com" include_examples "invalid email", "fritz.fantom@gamil.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.co" include_examples "invalid email", "fritz.fantom@gmailcom"