Test::Unit with RubyUnit compatibility layer bug?

Hello,

Is it well-known that Test::Unit asserts display the wrong file and linenumber if you use the RubyUnit compatibility layer? Here’s how a failure looks with Andy’s latest windows installer with Test::Unit 0.1.4.

e.g.:

#!/usr/bin/env ruby

require ‘rubyunit’

class MyTestCase < RUNIT::TestCase
def test_assert
assert(false)
end
end

produces:

Failure occurred in TestCase#test_assert [c:/ruby167/lib/ruby/site_ruby/1.6/runit/assert.r
b:17]:

while

#!/usr/bin/env ruby

require ‘test/unit’

class MyTestCase < Test::Unit::TestCase
def test_assert
assert(false)
end
end

produces

Failure occurred in test_assert(MyTestCase) [./play.rb:7]:

Thomas
Speakanet A/S | Hornemansgade 36A | DK - 2100 København Ø | Direkte: +45 7023 0880 / 922 | Fax: +45 7023 0888 | www.speakanet.com