spike
spike

Reputation: 10004

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?

Upvotes: 17

Views: 3088

Answers (1)

Ryan Bigg
Ryan Bigg

Reputation: 107728

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

Upvotes: 40

Related Questions