Sha256: cae5f1934cc857039a9f408ffe8e5fdb1df1601bccd4be6a27622b952b3b0312

Contents?: true

Size: 389 Bytes

Versions: 6

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacRailsGemSupport
  module Rspec
    module Setup
      module FactoryBot
        def setup_factory_bot
          require 'factory_bot_rails'
          rspec_config.include ::FactoryBot::Syntax::Methods
          Spring.after_fork { ::FactoryBot.reload } if defined?(Spring)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
eac_rails_gem_support-0.5.0 lib/eac_rails_gem_support/rspec/setup/factory_bot.rb
eac_rails_gem_support-0.4.1 lib/eac_rails_gem_support/rspec/setup/factory_bot.rb
eac_rails_gem_support-0.4.0 lib/eac_rails_gem_support/rspec/setup/factory_bot.rb
eac_rails_gem_support-0.3.0 lib/eac_rails_gem_support/rspec/setup/factory_bot.rb
eac_rails_gem_support-0.2.0 lib/eac_rails_gem_support/rspec/setup/factory_bot.rb
eac_rails_gem_support-0.1.1 lib/eac_rails_gem_support/rspec/setup/factory_bot.rb