diff options
Diffstat (limited to 'test/unit/email_address_test.rb')
-rw-r--r-- | test/unit/email_address_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/email_address_test.rb b/test/unit/email_address_test.rb index 2cba7bbad..6fa1d7882 100644 --- a/test/unit/email_address_test.rb +++ b/test/unit/email_address_test.rb @@ -64,4 +64,8 @@ class EmailAddressTest < ActiveSupport::TestCase assert email.valid? end end + + def test_should_reject_invalid_email + assert_not EmailAddress.new(address: 'invalid,email@example.com').valid? + end end |