RSpec.configure do |config| config.include FactoryBot::Syntax::Methods config.before(:suite) do begin DatabaseCleaner.start FactoryBot.lint ensure DatabaseCleaner.clean end end end