Hey, I ran into a very weird problem and after trying to solve it for like 3 hours now and Google not willing to help me I have to ask you guys.
I'm currently writing some Spec tests which fail because of some missing seed data. So rspec spec/ fails with: /Users/pbartels/Sites/brothelking/app/models/character.rb:175:in `create_fund': Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id (RuntimeError) Well, fine I said so I'll just run rake db:seed RAILS_ENV=test to seed the database: rake aborted! Validation failed: Name has already been taken ... /Users/pbartels/Sites/ror_project/spec/factories/reports.rb:132:in `block in <top (required)>' ... What the heck's got rake to do in the spec directory? I get the exact same error when I start spork or rails s When I run RAILS_ENV=test rake db:fixtures:load I also get "Called id for nil..." which doesn't make sense to me? In conclusion: Whatever I start/run it all fails inside some spec file and I have absolutely no idea why everything is going into the spec folder anyway?! I don't even know where to start pasting files here so if anyone wants to see any file, please tell me. I am kinda desperate now. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

