Forum: Ruby on Rails Fixtures ... a newbee mystery...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9ea8229b9b6503cde77171ffcfe2eedc?d=identicon&s=25 Sonny Chee (soroe)
on 2007-04-21 01:51
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.
C4dc94c893471878a105761a9207f29b?d=identicon&s=25 Zack Chandler (Guest)
on 2007-04-21 02:05
(Received via mailing list)
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 Chandler
http://depixelate.com
9ea8229b9b6503cde77171ffcfe2eedc?d=identicon&s=25 Sonny Chee (soroe)
on 2007-04-21 02:25
Aaah... yes, now I see it. Thanks Zack, much obliged.

Sonny.
This topic is locked and can not be replied to.