From 876cbba7422d079ca9bafc439b0bc2f34666d084 Mon Sep 17 00:00:00 2001 From: Ian Bayne Date: Thu, 15 Oct 2020 19:55:11 +0900 Subject: [PATCH] test: add missing spec --- spec/valid_email2_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/valid_email2_spec.rb b/spec/valid_email2_spec.rb index 652e987..de92920 100644 --- a/spec/valid_email2_spec.rb +++ b/spec/valid_email2_spec.rb @@ -97,6 +97,11 @@ class TestUserMultiple < TestModel expect(user.valid?).to be_falsey end + it "is invalid if the local part of the address ends with a dot" do + user = TestUser.new(email: "foo.@bar.com") + expect(user.valid?).to be_falsey + end + it "is invalid if the email contains emoticons" do user = TestUser.new(email: "foo🙈@gmail.com") expect(user.valid?).to be_falsy