Nasir Khan
3/13/2008 3:34:00 AM
[Note: parts of this message were removed to make it a legal post.]
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.run=(flag)
@run = flag
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
On Wed, Mar 12, 2008 at 9:06 PM, Ryan Davis <ryand-ruby@zenspider.com>
wrote:
>
> On Mar 12, 2008, at 14:03 , Nasir Khan wrote:
>
> > In unit.rb with "ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]"
> >
> > at_exit do
> > unless $! || Test::Unit.run?
> > exit Test::Unit::AutoRunner.run
> > end
> > end
>
> not a bug... just bad English. It should be #ran?, not #run?.
>
>
>