and now for something completely different: name and address sequence generators

7 views
Skip to first unread message

fearless_fool

unread,
Feb 28, 2013, 10:56:45 PM2/28/13
to factor...@googlegroups.com
Spice up your tests a bit.  For fun, I've written two sequence generators for FactoryGirl.  The first,


is a name generator that produces fictitious names such as:

    Claire CAMERON
    Frances CRAWFORD
    Karina ESCOBAR
    Miles GUERRERO
    Shelia BENJAMIN

And correspondingly, 


is a generator for US-based street addresses, producing addresses such as:

    1001 Birch Boulevard, Clinton AK 52574, USA
    1002 Cedar Drive, Springfield AZ 28861, USA
    1003 Dogwood Place, Greenville AR 05148, USA
    1004 Elm Road, Salem CA 81435, USA
    1005 Ginkgo Street, Fairview CO 57722, USA

Share and enjoy...

- ff

Sebastian Cohnen

unread,
Mar 1, 2013, 3:59:15 AM3/1/13
to factor...@googlegroups.com
Cool, if you need something like that for more stuff (like phone numbers) and in i18n, you should take a look at faker: https://github.com/stympy/faker

--
--
Individuals over processes. Interactions over tools. Agile Rails training from thoughtbot, the makers of Clearance, Shoulda, & Factory Girl:
http://thoughtbot.com/services/training
 
You received this message because you are subscribed to the "factory_girl" mailing list.
To post to this group, send email to factor...@googlegroups.com
To unsubscribe from this group, send email to
factory_girl...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/factory_girl?hl=en
---
You received this message because you are subscribed to the Google Groups "factory_girl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to factory_girl...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages