Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixtures issue after upgrading to rails 3.1

I'm trying to upgrade my app to rails 3.1 and hit an issue while running my tests.

Every test is failing with this error:

      NameError: uninitialized constant Fixtures

It's coming from using Fixtures.identify() in my fixtures:

     <%= Fixtures.identify(:thing) %>

Is this no longer supported in rails 3.1? Is there an alternative to using Fixtures.identify to get the ID of a fixture?

like image 670
spike Avatar asked Sep 19 '11 18:09

spike


1 Answers

You will have to refer to it as ActiveRecord::Fixtures now.

like image 70
Ryan Bigg Avatar answered Oct 14 '22 10:10

Ryan Bigg