Db:fixtures:load not working anymore?!

Hello people,

for some reason my db:fixtures:load FIXTURES=menus doesn’t work anymore.
This is my output:
debian:/var/www/project# rake db:fixtures:load FIXTURES=menus
(in /var/www/project)
rake aborted!
Could not find /var/www/project/test/fixtures/m.yml or
/var/www/project/test/fixtures/m.csv

(See full trace by running task with --trace)

Does anyone know why it’s looking for m.yml instead of menus.yml?

Problem solved, I played around and figured out that Rails 3 apparently
needs the file ending as well.

rake db:fixtures:load FIXTURES=menus.yml works fine!

Heinz S. wrote in post #960377:

Problem solved, I played around and figured out that Rails 3 apparently
needs the file ending as well.

rake db:fixtures:load FIXTURES=menus.yml works fine!

Great. Now stop using fixtures. They’re a broken feature of Rails and
should be avoided entirely.

Install Machinist or Factory Girl and rewrite your tests to use
factories. They’ll be less brittle and easier to maintain.

Best

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Haha, I know. It’s just a small part that remained in fixture and too
lazy to move them to machinist. Will do soon, promise! :slight_smile: