Permalink
Browse files

Recipe for factory_girl

  • Loading branch information...
1 parent 3f7cc81 commit 8295a7dc6bc6bdf53208e794e1015f1acf054e7a @kfaustino kfaustino committed Jul 20, 2010
Showing with 4 additions and 5 deletions.
  1. +1 −0 recipes/factory_girl.rb
  2. +3 −5 templater.rb
@@ -0,0 +1 @@
+gem 'factory_girl_rails', :group => :test
View
@@ -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

0 comments on commit 8295a7d

Please sign in to comment.