|
|
|
|
@ -34,38 +34,9 @@ RSpec.describe Params::BaseValidator do
|
|
|
|
|
it 'when signle email is invalid' do
|
|
|
|
|
emails = [
|
|
|
|
|
'jone.doe@',
|
|
|
|
|
'mike.smith@',
|
|
|
|
|
'jane.doe@@example.com',
|
|
|
|
|
'@example.com',
|
|
|
|
|
'lisa.wong@example',
|
|
|
|
|
'peter.parker..@example.com',
|
|
|
|
|
'anna.jones@.com',
|
|
|
|
|
'jack.brown@com',
|
|
|
|
|
'john doe@example.com',
|
|
|
|
|
'laura.martin@ example.com',
|
|
|
|
|
'dave.clark@example .com',
|
|
|
|
|
'susan.green@example,com',
|
|
|
|
|
'chris.lee@example;com',
|
|
|
|
|
'jenny.king@.example.com',
|
|
|
|
|
'.henry.ford@example.com',
|
|
|
|
|
'amy.baker@sub_domain.com',
|
|
|
|
|
'george.morris@-example.com',
|
|
|
|
|
'nancy.davis@example..com',
|
|
|
|
|
'kevin.white@.',
|
|
|
|
|
'diana.robinson@.example..com',
|
|
|
|
|
'oliver.scott@example.c',
|
|
|
|
|
'email1@g.comemail@g.com',
|
|
|
|
|
'user.name@subdomain.example@example.com',
|
|
|
|
|
'double@at@sign.com',
|
|
|
|
|
'user@@example.com',
|
|
|
|
|
'email@123.123.123.123',
|
|
|
|
|
'this...is@strange.but.valid.com',
|
|
|
|
|
'mix-and.match@strangely-formed-email_address.com',
|
|
|
|
|
'email@domain..com',
|
|
|
|
|
'user@-weird-domain-.com',
|
|
|
|
|
'user.name@[IPv6:2001:db8::1]',
|
|
|
|
|
'tricky.email@sub.example-.com',
|
|
|
|
|
'user@domain.c0m'
|
|
|
|
|
'tricky.email@sub.example-.com'
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
emails.each do |email|
|
|
|
|
|
|