[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] new random_data gem for better development data

Mike Subelsky

9/20/2007 10:52:00 PM

I've released a small gem that provides a Random singleton class with a
series of methods for generating random test data including names,
mailing addresses, dates, phone numbers, e-mail addresses, and text.
This lets you quickly mock up realistic looking data for informal
testing.

Instead of:

>> foo.name = "John Doe"

You get:

>> foo.name = "#{Random.firstname} #{Random.initial} #{Random.lastname}"
>> foo.name
=> "Miriam R. Xichuan"

The gem also includes code for phone numbers, e-mail addresses, physical
addresses, and (primitive) text generation.

For more details and full documentation, visit:
http://random-data.ruby...

-Mike
--
Posted via http://www.ruby-....