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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On 4/20/07, Sonny Chee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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. > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Aaah... yes, now I see it. Thanks Zack, much obliged. Sonny. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---