From: Adam Akhtar Date: 2009-03-29T14:42:43+09:00 Subject: Re: where to declare project path for require ok ive been hacking away at this trying to figure out why its going wrong but cant figure it out. I understand about the loadpath and that require will go searching for your required file in each of the specified directories and stop at the first instance it finds. If i have a three files myproject/tests/test.rb myproject/tests/samples/A.rb myproject/tests/samples/B.rb in test.rb : require "samples/A" in A.rb require "B" that should work shouldnt it??? but in my case it complains saying "no such file B.rb". IT should be able to find it because its in the same diretory as A though. Im going absolutely insane here. can anyone eplain why this is happening and what how paths should be set with regards to your main project file and test files etc -- Posted via http://www.ruby-forum.com/.