# Fixtures not loading?

**URL:** <https://www.ruby-forum.com/t/fixtures-not-loading/74219>\
**Category:** Engines\
**Created:** [November 2, 2006, 2:00am UTC](https://www.ruby-forum.com/t/fixtures-not-loading/74219 "2006-11-02T02:00:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/da6949/32.png) [@cwd](https://www.ruby-forum.com/u/cwd)\
**Post date:** [November 2, 2006, 2:00am UTC](https://www.ruby-forum.com/t/fixtures-not-loading/74219/1 "2006-11-02T02:00:27Z")

</div>

My tests were all passing beautifully and then … they weren’t. Yes,  
something changed: I pared tables relevant to this app out of a larger  
application database. Now, however, when my fixtures (note plural)  
method call occurs in test\_helper.rb, it goes immediately to the  
engines/lib/engines/testing\_extensions.rb and fails at line 285,  
claiming a nil object (nil.[]).

Stepping through this in rdebug shows this:

self.fixtures  
p file\_names

[:users, :roles, :roles\_users, :permissions, :permissions\_roles]

So I know the fixture candidates are ok. But they are never loaded into  
the test database and are not accessible via the accessor(:sym) method.

So, the following code always fails:

```
bogus_record = members(:existing_user_2)

```

as does

```
bogus_record = Member.find(:first)

```

Any thoughts?

Thanks
