# Re: load unless requires - what are the ramifications

**URL:** <https://www.ruby-forum.com/t/re-load-unless-requires-what-are-the-ramifications/94929>\
**Category:** Ruby\
**Created:** [May 17, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-load-unless-requires-what-are-the-ramifications/94929 "2006-05-17T20:41:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 17, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-load-unless-requires-what-are-the-ramifications/94929/1 "2006-05-17T20:41:11Z")

</div>

> 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.

Regards,

Dan

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