[rspec-users] $LOAD_PATH problem when creating rake task

Tero Tilus tero at tilus.net
Tue Jul 29 05:45:29 EDT 2008

I'm trying to put together some rake tasks to run my specs, but
require 'spec/rake/spectask' complains "no such file".  I've gem
installed rspec on my Ubuntu box and looks like it's locate in
/var/lib/gems/1.8/gems/rspec-1.1.4/, which is not in load path

=> ["/usr/local/lib/site_ruby/1.8",
"/usr/local/lib/site_ruby/1.8/i386-linux", "/usr/local/lib/site_ruby",
"/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i486-linux",
"/usr/lib/ruby/1.8/i386-linux", "."]

Now what?  What would be a kosher way around this, maybe ln -s
something somewhere?  I can see the issue being discussed though,

Tero Tilus ## 050 3635 235 ## http://www.tilus.net/koti/tero/

More information about the rspec-users mailing list