Sha256: 0094373989e47c066a2fae1287570f3f024c328571589b69ce389aa3b0c1b16e

Contents?: true

Size: 421 Bytes

Versions: 4

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

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

4 entries across 4 versions & 1 rubygems

Version Path
factory_bot-preload-0.3.0 lib/factory_bot/preload/minitest.rb
factory_bot-preload-0.2.2 lib/factory_bot/preload/minitest.rb
factory_bot-preload-0.2.1 lib/factory_bot/preload/minitest.rb
factory_bot-preload-0.2.0 lib/factory_bot/preload/minitest.rb