librelist archives

« back to archive

Load Error

Load Error

From:
Arvind Laxminaryan
Date:
2011-01-09 @ 19:14
Hi,

I have cloned the resque github repository and installed all the
dependencies.

I am not able to execute the test suite. On `rake test` I get the following
error:

" <internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- test/test_helper (LoadError)
from test/resque-web_test.rb:1:in `<main>' "

I am confused as $HOME/resque/test/test_helper.rb exists.

I am running Ubuntu 10.10 and using "ruby 1.9.2p136 (2010-12-25 revision
30365) [x86_64-linux]"

Regards,
-- 
Arvind

Re: [resque] Load Error

From:
Thibaut Barrère
Date:
2011-01-09 @ 19:21
Hi,

> I am running Ubuntu 10.10 and using "ruby 1.9.2p136 (2010-12-25 revision
30365) [x86_64-linux]"

You are on ruby 1.9.2, so my guess is that it's because it hasn't got
"." in the LOAD_PATH.

One fix is to add the main folder to the path just before, in your tests only:

$: << File.expand_path( RIGHT_PATH_HERE )

-- Thibaut