From: Michael Fellinger Date: 2007-07-23T12:15:31+09:00 Subject: Re: "require" in unit test not returning true or false > I'm not sure I follow you on how to do it with a rakefile... task :check_dependencies do { :mechanize => "WWW::Mechanize", :hpricot => "Hpricot" }.each do |dep, klass| begin require dep begin eval("defined?(#{klass})") rescue NameError abort("#{dep} was loaded but couldn't find '#{klass}'") end rescue LoadError abort("Couldn't load '#{dep}'") end end ^ manveru