From: Allen Lee Date: 2009-11-17T18:56:26+09:00 Subject: Re: How to run a specific TestUnit if the file contain two Test::Unit::TestCase classes? --001636e0b854e3808a04788e0fb4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=F1aki Baz Castillo wrote= : > El Lunes, 16 de Noviembre de 2009, I=F1aki Baz Castillo escribi=F3: > > 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. > > > -- > I=F1aki Baz Castillo > > --001636e0b854e3808a04788e0fb4--