Module: Stationed::Generators::Plugins::FactoryGirl

Included in:
AppGenerator
Defined in:
lib/stationed/generators/plugins/factory_girl.rb

Instance Method Summary collapse

Instance Method Details

#finish_templateObject



5
6
7
8
9
10
# File 'lib/stationed/generators/plugins/factory_girl.rb', line 5

def finish_template
  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