Skip to content

Commit

Permalink
test: add missing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbayne committed Oct 15, 2020
1 parent 7258a12 commit 876cbba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/valid_email2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]")
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
Expand Down

0 comments on commit 876cbba

Please sign in to comment.