Sha256: fbc002ffc5feebacfe28db92e62325ab2dd64e99813993b15fcdc2242a725cd1

Contents?: true

Size: 334 Bytes

Versions: 5

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

require "rspec/core"
require "factory_bot/syntax/methods"

RSpec.configure do |config|
  config.include FactoryBot::Preload::Helpers

  config.before(:suite) do
    FactoryBot::Preload.clean
    FactoryBot::Preload.run
  end

  config.before(:each) do
    FactoryBot::Preload.reload_factories
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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