faker icon indicating copy to clipboard operation
faker copied to clipboard

improvement request: Allow email addresses have + signs in them

Open concept47 opened this issue 8 years ago • 3 comments

Due to having run into this problem using Faker where our tests pass with the generated emails but an email like [email protected] comes along and viciously breaks our tests, I was wondering if it'd be possible to add a specific call for this like

Faker::Internet.email_with_plus_sign

or (even better) make it part of the way emails are randomly generated, along with dotted emails like [email protected] for example.

Thanks for all your hard work on faker! It really is an invaluable tool in our automated testing.

concept47 avatar Apr 06 '18 04:04 concept47

@vbrazo I would love to work on this. I can start with the easy implementation of:

Faker::Internet.email_with_plus_sign

And then attempt the automated kind, if that is what you hope for 😄

aamarill avatar May 23 '18 04:05 aamarill

Please make this just one (or more) of the email formats that can be used, rather than a specific method.

stympy avatar May 23 '18 11:05 stympy

We're closing this issue, because @aamarill has already implemented this idea in a PR. Thanks a lot for creating this issue and investing your time :)

vbrazo avatar Jun 02 '18 16:06 vbrazo