Sha256: 68c87ce69eb5238f1e9367d4d8f7a9c19f811c377f6eb858778ac4454be74afc

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

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

module FixtureBot
  module Preload
    def self.minitest
      ::FixtureBot.clean
      ::FixtureBot.run
    end

    module MinitestSetup
      def setup
        ::FixtureBot.reload_factories
        super
      end
    end

    ::Minitest::Test.include Helpers
    ::Minitest::Test.prepend MinitestSetup
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fixture_bot-0.3.0 lib/fixture_bot/minitest.rb
fixture_bot-0.2.0 lib/fixture_bot/minitest.rb
fixture_bot-0.1.0 lib/fixture_bot/minitest.rb