From: Kouhei Sutou Date: 2011-05-28T11:54:57+09:00 Subject: Re: Startup & Shutdown Hi, In "Re: Startup & Shutdown" on Sat, 28 May 2011 00:01:56 +0900, Rajesh Huria wrote: > thanks a lot buddy.. its working now. i would like to know why its not > working when i dont write - gem 'test-unit' - i can see the standard > library also has test/unit @ http://www.ruby-doc.org/stdlib-1.8.7/ but > does not support startup and shutdown. Also, when i am writing require > 'test/unit', it should work? usually we include gems with this format??? 'require "test/unit"' only case: Ruby bundled test-unit is loaded because bundled test-unit is already in $LOAD_PATH. 'gem "test-unit"; require "test/unit"' case: 'gem "test-unit"' prepends paths for gem version test-unit (not Ruby bundled test-unit) to $LOAD_PATH. 'require "test/unit"' finds gem version test-unit instead of Ruby bundled test-unit. Please try the scripts: 'require "test/unit"' only case: p $LOAD_PATH require 'test/unit' p $LOADED_FEATURES 'gem "test-unit"; require "test/unit"' case: require 'rubygems' p $LOAD_PATH gem 'test-unit' p $LOAD_PATH require 'test/unit' p $LOADED_FEATURES Thanks, -- kou