From: Jim Weirich Date: 2004-12-30T01:40:55+09:00 Subject: Re: unusual rake behaviour Yogi said: > Hello all! > > I've been getting some odd behaviour in rake. The foll cmd doesn't > seem to run the tests in foo_test.rb. I'm using ruby 1.8.2, rake > 0.4.13, on linux (fedora core 2) Hmm ... I just tried the code you supplied on a windows box and a debian box and had no problems. I tried with the foo_test.rb file in the same directory as the Rakefile and also with it in a subdirectory named test. > I've also tried running "ruby -Ilib -e0 -rfoo_test", and it gives the > same output. Hmmm ... This leads me to believe the problem lies in your setup somewhere and not with rake itself. The -r syntax essentially does a "require 'foo_test'" at the start of your code. If you have multiple foo_test files in your ruby load path, it may be picking up the wrong one. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)