I'm trying to use Steak with Factory Girl and I'm having this problem
while running rake spec (which I use to run all the tests):
Factory already defined: todo_item.
On the stacktrace, I see that it comes from my acceptance tests. Using
autotest, all my tests pass.
I don't know why this is happening since I'm not seeing where I load
the factories twice. My spec_helper and my acceptance helper are here:
http://gist.github.com/552564
Any hints ?
--
===================
Rodrigo L. M. Flores
Computer Science Msc. Student - IME - USP
Computer Science Degree - IME - USP
Homepage (en): http://www.rodrigoflores.org
Blog (pt-BR): http://blog.rodrigoflores.org
Linux User # : 351304
Jabber: i...@rodrigoflores.org
Also, make sure you're using latest version of Steak from git, and that you don't have any rake file like in `/lib/tasks/steak.rake` since that file is no longer necessary.
-- Luismi
if Factory.factories.empty?
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
end