[rspec-users] Newbie : how to require to lib from spec under autotest?

Pat Maddox pergesu at gmail.com
Sat Apr 5 11:57:40 EDT 2008

On Sat, Apr 5, 2008 at 8:42 AM, Peter Fitzgibbons
<peter.fitzgibbons at gmail.com> wrote:
> "Where Ruby finds its modules" gave me the answer.  I needed to set
> environment variable RUBYLIB
> export RUBYLIB=./lib:../lib

Instead of setting an environment variable before running the app, you
can modify the load path in your code with:
$:.unshift(*['./lib', '../lib'])


More information about the rspec-users mailing list