R
Rasputin
This code used to work under 1.6.8 with Test::Unit 0.1.8:
0rasputin@lb:stickyfingers$ cat test/all.rb
#! /usr/local/bin/ruby -w
require 'test/unit'
require 'test/chaintest'
require 'test/chunkertest'
require 'test/filestoretest'
class Daddy < Test::Unit::TestSuite
self << ChainTest.new
self << ChunkerTest.new
self << FilestoreTest.new
end
0rasputin@lb:stickyfingers$
(The classes listed are just bog standard
class ChunkerTest < Test::Unit::TestCase' affairs).
It now gives errors under CVS Ruby - looks like a change in the TestCase
constructor. How do I create a testsuite now?
0rasputin@lb:stickyfingers$ /usr/local/bin/ruby -v
ruby 1.8.1 (2003-11-21) [i386-netbsdelf]
0rasputin@lb:stickyfingers$ /usr/local/bin/ruby test/all.rb
test/all.rb:10:in `initialize': wrong number of arguments(0 for 1) (ArgumentError)
from test/all.rb:10:in `new'
from test/all.rb:10
0rasputin@lb:stickyfingers$ cat test/all.rb
#! /usr/local/bin/ruby -w
require 'test/unit'
require 'test/chaintest'
require 'test/chunkertest'
require 'test/filestoretest'
class Daddy < Test::Unit::TestSuite
self << ChainTest.new
self << ChunkerTest.new
self << FilestoreTest.new
end
0rasputin@lb:stickyfingers$
(The classes listed are just bog standard
class ChunkerTest < Test::Unit::TestCase' affairs).
It now gives errors under CVS Ruby - looks like a change in the TestCase
constructor. How do I create a testsuite now?
0rasputin@lb:stickyfingers$ /usr/local/bin/ruby -v
ruby 1.8.1 (2003-11-21) [i386-netbsdelf]
0rasputin@lb:stickyfingers$ /usr/local/bin/ruby test/all.rb
test/all.rb:10:in `initialize': wrong number of arguments(0 for 1) (ArgumentError)
from test/all.rb:10:in `new'
from test/all.rb:10