Skip to content

Commit

Permalink
Add specs for email validator strict mode (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari authored Jun 7, 2024
1 parent 4bc064f commit 13bc29a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13bc29a

Please sign in to comment.