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
···
On Mon, Nov 16, 2009 at 7:33 PM, Iñaki Baz Castillo <ibc@aliax.net> wrote:
El Lunes, 16 de Noviembre de 2009, Iñaki Baz Castillo escribió:
> 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.
Sorry, the fact is that both functions are runned.