Img caption: railscarma.com
Developers may feel they do not have that much creativity
when it comes to use random words as arguments, or values
for many fields. For example, if we have some test cases
when we are creating a new instance of a Book object,
chances are that we will assign ‘book’ to this object’s
title, which does not seem that much interesting. We code
because it is something that gives us pleasure, and getting
help with these types of difficulties can be helpful.
Fortunately, there is a Ruby gem called Faker
that generates random fake value that you can use in your
tests.
Continue reading