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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] new random_data gem for better development data
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password