From: RLMuller@... (Richard) Date: 2003-06-08T08:32:47+09:00 Subject: Re: Problem with "require" stmt in "test-first " tutorial Hi Nobu and Simon, Thank you both for your responses. RUBYLIB ------- I added the environment variable RUBYLIB as you advised me. I added: RUBYLIB=I:\Program Files\Ruby\lib\ruby\site_ruby\1.6 to my system, which facilitated the search for require 'runit\\testcase' That definition seemed excessively detailed compared to my RUBYPATH definition RUBYPATH=I:\Program Files\Ruby so I reduced it to RUBYLIB=I:\Program Files\Ruby\lib in a subsequent project and that seemed to work fine. I trust you agree that this is the appropriate RUBYLIB definition. Question: Can multiple libraries be concatenated in the RUBYPATH definition. If so, what is the delimiter to be used on a Win2000Pro platform? Semicolon or colon? Unit Testing ------------ I couldn't get the test example to work, despite your generous help. (I'm a Ruby newbie.) So I found a simpler example from Hal Fulton at http://rubyhacker.com/domo.html Based on that, I wrote the following: require "test/unit" class Sample def initialize end def to_s %q[Hi, I'm "Sample"] end end class Tester < Test::Unit::TestCase def test001 sample = Sample.new puts sample end end This produced the following output (when running under SciTe on Win2000Pro): >ruby UnitTestExample2.rb Hi, I'm "Sample" Loaded suite UnitTestExample2 Started... .. Finished in 0.01 seconds. 1 runs, 0 assertions, 0 failures, 0 errors >Exit code: 0 Question: This output is a distortion from the output obtained when running the script in a Command window. It looks like SciTe treats the output from the script proper via "puts" distinctly from output from the "unit" package, so that they are presented out of order in the output pane. I'm happy to have Unit Tesing working, but I'd like to know the details about SciTe so that I interpret output from future usage correctly. Thanks again to you both for your help. Regards, Richard