From: James Edward Gray II Date: 2006-03-26T01:30:03+09:00 Subject: Re: Regarding Testing Mixins On Mar 24, 2006, at 10:43 PM, James Herdman wrote: > Suppose my project directory is as follows: > > ../project_dir/trunk/lib # Where all my classes and scripts go > ../project_dir/trunk/tests # Where all my tests go > > My mixin resides in the lib folder, and normally I use this neat > trick to handle this discreprancy in file locations: > > $:.unshift File.join(File.dirname(__FILE__), "..", "lib") # Thank > you Pick Ax! Just FYI, you can also solve this by running your tests (from the root project directory) with something like: $ ruby -I lib:test test/ts_all.rb If you use Rake, it will automatically add the directories for your test tasks. James Edward Gray II