# Fixtures ... a newbee mystery

**URL:** <https://www.ruby-forum.com/t/fixtures-a-newbee-mystery/92584>\
**Category:** Rails\
**Created:** [April 21, 2007, 1:51am UTC](https://www.ruby-forum.com/t/fixtures-a-newbee-mystery/92584 "2007-04-21T01:51:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soroe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@soroe](https://www.ruby-forum.com/u/soroe)\
**Post date:** [April 21, 2007, 1:51am UTC](https://www.ruby-forum.com/t/fixtures-a-newbee-mystery/92584/1 "2007-04-21T01:51:03Z")

</div>

Hey Guys,

I want to look at the source code for the fixtures method (used in  
loading data fixtures in the unit test framework.) I’ve searched through  
all of the files in the ruby folder and those in the rails application  
folder for the following term with no luck…

def fixtures

I’m guessing this is because the fixtures method is really a compiled  
method in some binary… that makes a call out to the fixture.rb file?

Sonny.

---

<div class="post-metadata">

**Author:** ![soroe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@soroe](https://www.ruby-forum.com/u/soroe)\
**Post date:** [April 21, 2007, 2:05am UTC](https://www.ruby-forum.com/t/fixtures-a-newbee-mystery/92584/2 "2007-04-21T02:05:19Z")

</div>

Sonny,

Check out activerecord/lib/active\_record/fixtures.rb.  
Test::Unit::TestCase is reopened and fixtures is added as a class  
method.

Hope this helps,

–  
Zack C.  
[http://depixelate.com](http://depixelate.com)

---

<div class="post-metadata">

**Author:** ![soroe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@soroe](https://www.ruby-forum.com/u/soroe)\
**Post date:** [April 21, 2007, 2:25am UTC](https://www.ruby-forum.com/t/fixtures-a-newbee-mystery/92584/3 "2007-04-21T02:25:12Z")

</div>

Aaah… yes, now I see it. Thanks Zack, much obliged.

Sonny.
