How I set up Factory Bot on a fresh Rails project
07-May-2020 1562
A reader of mine recently asked me how I set up Factory Bot for a new Rails project.There are four steps I go through to set up Factory Bot.Install the factory_bot_rails gemSet up one or more factory definitionsInstall FakerAdd the Factory Bot syntax methods to my rails_helper.rb fileFollowing are the details for each step.
How I set up Factory Bot on a fresh Rails project #ruby #rubydeveloper #rubyonrails #Factory #fresh #Rails #project https://rubyonrails.ba/link/how-i-set-up-factory-bot-on-a-fresh-rails-project