Following the example at http://robots.thoughtbot.com/testing-your-factories-first
the line task spec: :factory_specs in the Rakefile tells rake to execute "factory_specs" task before "spec" task.
My issue is that rake spec loads the Rails environment twice, one to execute factory_specs task and then another to execute spec task.
How do I prevent my rake command from loading Rails twice?
My stack:
- Ruby 1.9.3p484
- Rails 3.2.13