Forum: Ruby on Rails Fixtures question - run *before* every test method?

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.
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2007-06-14 23:42
(Received via mailing list)
I just noticed a behavior that makes me wonder exactly what the sequence
of events is when unit tests are run.  All the stuff I've read says that
before every test method all the rows in the table get deleted and the
fixtures get 'run' to load the table.  What I noticed today is that
*after* the execution of a test case, the table contents are exactly
what's specified in the fixture.  That leads me to wonder exactly what
triggers the execution of the code that uses the fixtures.  Seems like
maybe the first execution is triggered by encountering a 'def' and after
that execution is triggered by encountering an 'end'.  Anybody know?  Or
know where I should look?

Thanks,
Bill
This topic is locked and can not be replied to.