From: Jim Freeze Date: 2003-07-09T03:37:21+09:00 Subject: Integrations tests and $: Hi: I have been writing unit tests lately and I have set up my local directory structure to be parallel to what the install directory structure is. This way, I can test new code while old code is still installed and available for people to execute. For example, my test_all.rb starts like this: $:.unshift("../lib") require 'tc_myclass' And, away it goes. Now, I have moved on to integration testing and am testing ruby applications. The problem is that when I execute the system call to run the integration test, I lose the $:.unshift results. In other words $:.unshift("../lib") system("myapp") does not work since $: will not have "../lib". I have tried the following: system("ruby -r ../lib myapp") but get the error: No such file to load -- ../lib (LoadError) I think this should be trivial to solve, but right now I'm not having any luck. Can anyone suggest some solutions? Thanks -- Jim Freeze ---------- To iterate is human, to recurse, divine.