Does someone know of a good ruby testing library for generating English (or maybe also those Latin "lorem ipsum") words? Another nice thing would be to specify some additional options (e.g. the word length, only use names). Does such a thing exist?
Check out Faker. For example,
ruby-1.8.7-p302 > Faker::Lorem.sentence
=> "Enim molestiae incidunt rem ipsum perferendis beatae excepturi tenetur."
ruby-1.8.7-p302 > Faker::Name.name
=> "Agnes Hand II"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With