Hi,

I'm organizing the tests I write into folders, based on which part of
the application they test. In the root folder, I have a script,
login.rb, which runs fine if run from there. The opening lines of
login.rb are:

#includes
require 'watir'
include Watir
require 'variables.rb'


When I try to run login.rb from a sub folder, it fails on "require
'variables.rb'", as it's looking in the current directory, which is a
folder down from variables.rb.

Is there a way to let login.rb know where variables.rb is at, without
putting in a hard path?

Thanks,
--
Michael Moore
-------------------------------
www.stuporglue.org -- Donate your used computer to a student that needs it.
www.ubuntu-utah.org -- In Utah? Interested in Ubuntu? Come join us.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to