require "rom-factory" require_relative "helpers" Factory = ROM::Factory.configure do |config| config.rom = Test::DatabaseHelpers.rom end Dir[Pathname(__FILE__).dirname.join("../../factories/**/*.rb")].each(&method(:require))