ARGV is set to nil in ruby 1.8.5 when using test/unit

Could anyone please explain what is going on here? Our test/unit scripts
suddenly stopped working properly when upgrading to 1.8.5 from 1.8.4.

Example script:
require 'test/unit'

class TestArgv < Test::Unit::TestCase

  def test_argv
    puts "test_argv: #{ARGV[0]}"
    puts ARGV[0].nil?
  end
end

Running on 1.8.4:

$ ruby -v
ruby 1.8.4 (2005-12-24) [i386-freebsd4]

$ ruby test_argv.rb randomarg
Loaded suite test_argv
Started
test_argv: randomarg
false
.
Finished in 0.00055 seconds.

1 tests, 0 assertions, 0 failures, 0 errors

Running on 1.8.5:

$ ruby -v
ruby 1.8.5 (2006-08-25) [i386-freebsd4.10]

$ ruby test_argv.rb randomarg
Loaded suite test_argv
Started
test_argv:
true
.
Finished in 0.000506 seconds.

1 tests, 0 assertions, 0 failures, 0 errors

Any help or pointers would be greatly appreaciated.

···

--
Gunnar G Bergem
QA Engineer, Yahoo! Technologies Norway

Hello

You should put -- in front of your args. The args before the -- go to
Test::Unit.

It looks like the unknown args are consumed in 1.8.5 but left intact in 1.8.4.

Prefixing with -- works the same in both.

Thanks

Michal