On 6/23/05, Jordan Gilliland <jordan / ce-lab.net> wrote:
> I'm using ruby 1.8.2 (2004-12-25) [i686-linux] and I've noticed that the
> order unit tests are defined in the testing file does not correspond to the
> order they are performed in. Instead, the order is simply alphabetical. If
> you want to order your tests, you have to name your test methods
> accordingly and I find this somewhat awkward.
[snip]

I usually write test_01_namea, test_02_nameb, .. etc when I want
my test to be ordered.  

If you have many testcases and you want tests that depends on the
order separated from tests that doesn't.. then I suggest to make another
test file.

btw: it seems you are using 'test/unit'.  :-)

--
Simon Strandgaard