How to run a specific TestUnit if the file contain two Test::Unit::TestCase classes?

Hi, I’ve a file with two classes:

class Test1 < Test::Unit::TestCase
def test_aaa

end
end

class Test2 < Test::Unit::TestCase
def test_aaa

end
end

How could I run just the “test_aaa” of the Test1 class?
If I run:
./my_tests.rb --name test_aaa
then just the latest function is runned.

Thanks.

El Lunes, 16 de Noviembre de 2009, Iñaki Baz C. escribió:

  ...
end

end

How could I run just the “test_aaa” of the Test1 class?
If I run:
./my_tests.rb --name test_aaa
then just the latest function is runned.

Sorry, the fact is that both functions are runned.

I also encounter this kind of problem. It seems that Ruby does support
sort
of meta-data applied to methods like attributes applied to methods in
.NET,
which allows us to distinguish two methods in our judge.

allenlooplee