Fabrication is a simple and powerful object generation library.
fabrication in the Gemfile
group :development, :test do
Fabricators defind in the right place are automatically loaded, for example:
A library for generating fake data such as names, addresses, and phone numbers.
faker in the Gemfile
group :test do
Faker::Name.name #=> "Christophe Bartell"
if you don’t want to persist the object to the database, you can use
Fabricate.build and skip the save step