Sha256: 92e3e6ca26a5bd819407431c6ed24abcf2f0b95b5d66275dd5a5421ecc432d5e
Contents?: true
Size: 547 Bytes
Versions: 4
Compression:
Stored size: 547 Bytes
Contents
require_relative "base" module Bulldozer class FactoriesGenerator < Generators::Base def add_factory_bot gem "factory_bot_rails", group: %i(development test) Bundler.with_clean_env { run "bundle install" } end def set_up_factory_bot_for_rspec copy_file "factory_bot_rspec.rb", "spec/support/factory_bot.rb" end def generate_empty_factories_file copy_file "factories.rb", "spec/factories.rb" end def provide_dev_prime_task copy_file "dev.rake", "lib/tasks/dev.rake" end end end
Version data entries
4 entries across 4 versions & 1 rubygems