------ art_11696_14181753.1205431018793 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Agree. This is how I am using it now. Thanks Nasir On Thu, Mar 13, 2008 at 2:54 AM, Jano Svitok <jan.svitok / gmail.com> wrote: > On Thu, Mar 13, 2008 at 4:33 AM, Nasir Khan <rubylearner / gmail.com> wrote: > > Well, if you see a few lines above that in unit.rb > > > > module Unit > > # If set to false Test::Unit will not automatically run at exit. > > def self.runlag) > > @run lag > > end > > > > Now to me this reads as if you set the flag to true the tests will run > on > > exit and if set to false the tests will not run on exit. > > > > This is obviously not what will happen when > > > > at_exit do > > unless $! || Test::Unit.run? > > exit Test::Unit::AutoRunner.run > > end > > end > > > > is executed, but the exact opposite. > > > > Nasir > > This was reported by Slavomir Hudak as rubyforge bug #18041 -- Unit > tests auto-run bug > My solution was to change the comment from "set to false" to "set to true" > ;-) > > > http://rubyforge.org/tracker/index.php?funcÛÕail&aid041&group_idB6&atid98 > > J. > > ------ art_11696_14181753.1205431018793--