here’s simplified code from the model:
class Foo < AR::Base
FIRST = Foo.first.id
The problem is that when testing I get well known error: “Called id
for nil…”. I guess that this constant is initialized before the
fixtures are loaded.
Is there any way to fix it?