Sha256: dda64a49c3270252dc0fabf8e6dca409c529fcf64ed49d6bc2bf8f9d95b5cb0b

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

require "minitest"
require "factory_bot/syntax/methods"

module FactoryBot
  module Preload
    def self.minitest
      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

2 entries across 2 versions & 1 rubygems

Version Path
factory_bot-preload-0.1.1 lib/factory_bot/preload/minitest.rb
factory_bot-preload-0.1.0 lib/factory_bot/preload/minitest.rb