From: Ryan Davis Date: 2007-07-23T05:05:44+09:00 Subject: Re: "require" in unit test not returning true or false On Jul 22, 2007, at 11:24 , Jesper R�nn-Jensen wrote: > I have a test file in my project to test dependencies to ruby gems, > arranged like this: > > class DependenciesTest < Test::Unit::TestCase > > def test_hpricot_should_exist > actual = require 'hpricot' > assert_equal(true, actual) > end Look... I'm a testing _freak_ and even I don't do this... First off, you dunno if you're using the REAL require or someone's override. Second, you're not _actually_ testing require, so why bother? If you want to have a quick and easy way to determine that a project has all the dependencies it needs, that seems better placed in the project's rakefile or somesuch.