#testing

Setup Factory Bot in Rails

Published by Prabin Poudel 2 min read
cover: Setup Factory Bot in Rails
Factory Bot is a ruby library for setting up test data objects in Ruby. Today we will be setting up Factory Bot in Rails which uses RSpec for testing. Factory Bot helps developers to write less code while testing with the factory objects that is created for each model.