On Mon, Oct 31, 2016 at 04:40:33PM +0530, Pirate Praveen wrote: > Control: tags -1 pending > > On Thu, 13 Oct 2016 18:08:12 +0200 (CEST) Santiago Vila > <sanv...@unex.es> wrote: > > At least the following tests seem to be wrongly designed: > > > > => 14: assert Faker::Internet.email.match(/.+@[^.].+\.\w+/) > > I don't see a reason for this to fail randomly.
Try generating a lot of random emails and stop at the first one that does not meet the above assert (and then print the generated email address). Then you will see why the email addresses are not generated correctly, or else why the test is wrong. I did something like that here in python: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838828 but I'm not fluent enough in ruby. [ Please Cc: me on bug reports, I'm reading this by chance ]. Thanks.