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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bill W. (Guest)
on 2007-06-15 01: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?

This topic is locked and can not be replied to.