How can I create a test fixture file for model Foo (table foos) that is called something other than foo.yml?
People succeed in answering Rich Collins's questions 37% of the time (32 successes in 86 attempts).
Answers by: awt | kris | Fear of Fish | sup
Simple create it in the fixtures folder, and then change the fixtures declaration at the top of the unit test to use it:
Add test/fixtures/foo_too.yml
fixtures :foo_too
How will rails know which table to put it into?
That's a good point, one I didn't consider. It would need a table of the same name.