Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Recipe for factory_girl

  • Loading branch information...
commit 8295a7dc6bc6bdf53208e794e1015f1acf054e7a 1 parent 3f7cc81
@kfaustino kfaustino authored
Showing with 4 additions and 5 deletions.
  1. +1 −0  recipes/factory_girl.rb
  2. +3 −5 templater.rb
View
1  recipes/factory_girl.rb
@@ -0,0 +1 @@
+gem 'factory_girl_rails', :group => :test
View
8 templater.rb
@@ -2,11 +2,8 @@
initialize_templater
-apply recipe('default')
-apply recipe('jquery')
-apply recipe('mongoid')
-apply recipe('haml')
-apply recipe('rspec')
+required_recipes = %w(default jquery mongoid haml rspec factory_girl)
+required_recipes.each {|required_recipe| apply recipe(required_recipe)}
run 'bundle install'
@@ -17,6 +14,7 @@
generators_configuration = <<-END
config.generators do |g|
g.template_engine :haml
+ g.fixture_replacement :factory_girl, :dir => 'spec/factories'
end
END
Please sign in to comment.
Something went wrong with that request. Please try again.