From: Gennady Date: 2003-05-18T07:51:25+09:00 Subject: Re: RCR: $INCLUDED global var > > Sure I do. Right now I do: > > if $0 == __FILE__ > require 'testunit' > > #do unit testing > end > Actually, I do: if $0 == __FILE__ or defined? Test::Unit::TestCase require 'test/unit' # do unit testing end This gives me ability both to test the file individually (:!ruby % in vi) as well as to include it in a project test suite where I put: require 'test/unit' require '.rb' require '.rb' ... require '.rb' Gennady.