Module: Lopata::FactoryBot
- Defined in:
- lib/lopata/factory_bot.rb
Overview
Helpers for FactoryBot usage in tests.
Make helpers available in scenarios by
require 'lopata/factory_bot'
Automatically adds ActiveRecord helpers. Allows to create ActiveRecord object by FactoryBot definitions. All the objects created by FactoryBot helpers will be destroyed automatically at the end of scenario.