From 13bc29afc00def26c658c890ef076caa1339e3ad Mon Sep 17 00:00:00 2001 From: Hamed Asghari Date: Fri, 7 Jun 2024 09:27:19 -1000 Subject: [PATCH] Add specs for email validator strict mode (#1001) --- spec/models/user_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index dd6b2bd0..ccaf1f54 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -12,6 +12,9 @@ it { is_expected.not_to allow_value("foo").for(:email) } it { is_expected.not_to allow_value("foo@").for(:email) } it { is_expected.not_to allow_value("foo@bar").for(:email) } + it { is_expected.not_to allow_value("foo;@example.com").for(:email) } + it { is_expected.not_to allow_value("foo@.example.com").for(:email) } + it { is_expected.not_to allow_value("foo@example..com").for(:email) } describe "#email" do it "stores email in down case and removes whitespace" do