Skip to content

Commit

Permalink
loading the factories
Browse files Browse the repository at this point in the history
  • Loading branch information
brunograsselli committed Jan 28, 2012
1 parent a717aec commit fe0abeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions factory_girl.rb
@@ -0,0 +1,3 @@
require 'factory_girl'
Dir.glob("#{File.dirname(__FILE__)}/../../spec/support/factories/*").each { |file| require file }

4 changes: 3 additions & 1 deletion main.rb
Expand Up @@ -2,9 +2,11 @@
run 'curl https://raw.github.com/BrunoGrasselli/rails_template/master/.gitignore -o .gitignore'
run 'curl https://raw.github.com/BrunoGrasselli/rails_template/master/application.html.erb -o app/views/layouts/application.html.erb'
run 'curl https://raw.github.com/BrunoGrasselli/rails_template/master/development.rb -o config/environments/development.rb'
run 'curl https://raw.github.com/BrunoGrasselli/rails_template/master/factory_girl.rb -o spec/support/factory_girl.rb'

run 'rm -rf test/ public/index.html'
run 'mkdir -p spec/support/factories'
run 'mkdir -p spec/support/factories features/support'
run 'cp spec/support/factory_girl.rb features/support/factory_girl.rb'

run 'bundle install'

Expand Down

0 comments on commit fe0abeb

Please sign in to comment.