Either I don't get it, or I am not making myself clear. I am running Eclipse 3.2.2 and the latest version of RDT.
I have statements in my files like the $: << File.expand_path(File.dirname(__FILE__)) That is not the problem! YOU HAVE TO BE ABLE TO OPEN A FILE BEFORE THE ABOVE LINE WORKS! When I try to run my top level suite file that requires all my other test files from Test::Unit inside Eclipse, it cannot find the top level file. If I run the top level suite file from Run Ruby, it finds the file and executes it. The problem is that Test::Unit in Eclipse cannot find the first file to run so it never gets a chance to execute the $: << File.expand_path(File.dirname(__FILE__)) Jim ----- Original Message ----- From: "Bill Agee" <[EMAIL PROTECTED]> To: <wtr-general@rubyforge.org> Sent: Tuesday, June 26, 2007 1:16 PM Subject: Re: [Wtr-general] Problems with Test::Unit in Eclipse > If you mean the __FILE__ variable, it is a pseudo variable that > contains the current source file name. So it will work even when used > as the first line of a script. > > It's really useful in cases like this, where you need to dynamically > add dir names to the load path before you try to require other files. > > > On 6/26/07, jim_matt <[EMAIL PROTECTED]> wrote: >> >> Thanks Walter, >> >> I think I understand what you are trying to do here. The problem is that >> it >> has to open a file first to get the line: >> >> $: << File.expand_path(File.dirname(__FILE__)) >> >> So how do you get it to find that first file? >> >> Jim > _______________________________________________ > Wtr-general mailing list > Wtr-general@rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general