Class: Bently::FactoryGirlRails

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/factory-girl-rails.rb

Constant Summary

Constants inherited from RubyRecipe

RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RailsRecipe

#generate, #migrate

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

Methods inherited from Recipe

#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn

Constructor Details

#initializeFactoryGirlRails

Returns a new instance of FactoryGirlRails.



9
10
11
12
13
14
15
# File 'lib/bently/recipe/factory-girl-rails.rb', line 9

def initialize
  gem_group :test do
    gem "factory_girl_rails", "~> 4.0"
  end
  bundle
  create './spec/factories.rb', template('factories.rb')
end