Sha256: ff7754842dce69653bc5f0583113df2dc16bdcb9561ebb15cfa2175a94e4df93
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true require "minitest" require "factory_bot/syntax/methods" module FactoryBot module Preload def self.minitest FactoryBot::Preload::Helpers.load_models FactoryBot::Preload.clean FactoryBot::Preload.run end module MinitestSetup def setup FactoryBot::Preload.reload_factories super end end Minitest::Test.include Helpers Minitest::Test.prepend MinitestSetup end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factory_bot-preload-0.3.1 | lib/factory_bot/preload/minitest.rb |