Test::Unit bug?

Hello,

Not sure if anyone’s noticed this before, but there’s bug in
Test::Unit’s unit.rb :

at_exit do
unless $! || Test::Unit.run?
exit Test::Unit::AutoRunner.run
end
end

Can you spot the bug? You have to do

Test::Unit.run = true

in order to disable the AutoRunner.

George

On Dec 14, 2007, at 12:26 , George M. wrote:

Can you spot the bug? You have to do

Test::Unit.run = true

in order to disable the AutoRunner.

or just don’t include ‘test/unit’.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs