Forum: Ruby Re: load unless requires - what are the ramifications

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Berger, Daniel (Guest)
on 2006-05-17 22:41
(Received via mailing list)
> of my question.
> I downloaded a project from RubyForge and I'm playing around with the
> scripts.  I'm having trouble getting the tests to pass - some pass if
> run from the main directory, others I have to be in the main/test
> directory for them to work.


Some people are nice about letting tests run from the test or parent
directory.  Others assume you'll run the tests with something like 'ruby
-I lib test/tc_foo.rb'.

You shouldn't need to hand edit the files at all, though your solution
will work.  Just use -I.  See p. 178 of Pickaxe II for more info.



This communication is the property of Qwest and may contain confidential
privileged information. Unauthorized use of this communication is
prohibited and may be unlawful.  If you have received this communication
in error, please immediately notify the sender by reply e-mail and
all copies of the communication and any attachments.
This topic is locked and can not be replied to.