In the test dir I have a file that does some unit testing. If I put
load ‘…/lib/JobList’
It works. But I am thinking that maybe this isn’t the best “Ruby way” to
do it.
Amy advise on how I should set up my project and use the load method?
Hmm. I just noticed that maybe I should put a single directory under
trunk as the root dir of my project?
BTW you can see all of this on Google code if it helps @ http://code.google.com/p/autosysjilreader/
In the test dir I have a file that does some unit testing. If I put
load ‘…/lib/JobList’
It works. But I am thinking that maybe this isn’t the best “Ruby way” to
do it.
Amy advise on how I should set up my project and use the load method?
Hmm. I just noticed that maybe I should put a single directory under
trunk as the root dir of my project?
BTW you can see all of this on Google code if it helps @ http://code.google.com/p/autosysjilreader/
Thanks in advance.
MoeBious
EDIT
I should have said require “…/lib/JobList”
I am using require not load. Sorry for any confusion.
In the test dir I have a file that does some unit testing. If I put
load ‘…/lib/JobList’
MoeBious
Its looks good. I cant really see the problem. As far as i know
filesystems use ‘…’ notation no matter what the operating system. It’s
not a long line and if it works it’s good. And its perfectly readable.
In the test dir I have a file that does some unit testing. If I put
load ‘…/lib/JobList’
I usually handle this by having a file ‘test/boottest.rb’ that looks
like this (along with whatever other project-specific bits and pieces I
might need across all test files):