Sha256: 183ccbbb7e9a87e56f0383d4643ef7f081f41c0c0c810c1d4f0f9b172471fdb7

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

# typed: true

module Packs
  module Rails
    module Integrations
      class FactoryBot
        def initialize(app)
          return unless app.config.respond_to?(:factory_bot)

          Packs.all.reject(&:is_gem?).each do |pack|
            app.config.factory_bot.definition_file_paths << pack.relative_path.join("spec/factories").to_s
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
packs-rails-0.0.3 lib/packs/rails/integrations/factory_bot.rb
packs-rails-0.0.2 lib/packs/rails/integrations/factory_bot.rb
packs-rails-0.0.1 lib/packs/rails/integrations/factory_bot.rb