Sha256: f75770d4ac9ec0a11c44483b0ac17ca11f4d9fcbf394b58e44326ca06069e12f
Contents?: true
Size: 648 Bytes
Versions: 6
Compression:
Stored size: 648 Bytes
Contents
module Stationed module Generators module Plugins module FactoryGirl def self.prepended(base) base.class_option :factory_girl, type: :boolean, default: true, desc: 'Include FactoryGirl and default tests for valid factories' end def finish_template return super unless options[:factory_girl] gem 'factory_girl_rails', group: [:development, :test] copy_file 'factory_girl.rb', 'spec/support/factory_girl.rb' copy_file 'factories_spec.rb', 'spec/models/factories_spec.rb' super end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems