Rasputin
12/1/2003 5:34:00 PM
* Nathaniel Talbott <nathaniel@talbott.ws> [1210 17:10]:
> On Dec 1, 2003, at 10:26, Rasputin wrote:
>
> >This code used to work under 1.6.8 with Test::Unit 0.1.8:
>
> Are you sure? I don't think creating a TestCase without a test to run
> has ever worked. I think what you want is:
Hmm,looks like you might be right. It definitely worked with no
errors last week, possibly under the CVS code?
> >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
> self << ChainTest.suite
> self << ChunkerTest.suite
> self << FilestoreTest.suite
> >end
>
>
> >It now gives errors under CVS Ruby - looks like a change in the
> >TestCase
> >constructor. How do I create a testsuite now?
>
> As I said, I don't think the code above would have ever worked.
God knows where I got that from then! I cut and pasted from somewhere...
> might like to know, though, that you don't have to create your own
> TestSuite; try this:
>
> #! /usr/local/bin/ruby -w
>
> require 'test/unit'
>
> require 'test/chaintest'
> require 'test/chunkertest'
> require 'test/filestoretest'
Thats great , thanks.
--
Disclaimer: "These opinions are my own, though for a small fee they be
yours too."
-- Dave Haynie
Rasputin :: Jack of All Trades - Master of Nuns