Sha256: 786f77863a724346f00e795efa064527d9c18ed127c18267a31d13be723ccdec
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 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 app.config.factory_bot.definition_file_paths << pack.relative_path.join("test/factories").to_s end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
packs-rails-0.0.5 | lib/packs/rails/integrations/factory_bot.rb |
packs-rails-0.0.4 | lib/packs/rails/integrations/factory_bot.rb |