From: David Carlton Date: 2007-07-16T08:35:36+09:00 Subject: Re: weirdness with ruby unit testing on mac On Mon, 16 Jul 2007 00:20:29 +0900, "Gregory Brown" said: > On 7/15/07, David Carlton wrote: >> On Sat, 14 Jul 2007 23:23:25 +0900, "Chris Carter" said: >> > On 7/14/07, David Carlton wrote: >>>> ruby -e "require 'dbcdb/test/all'" >>> First of all, you should be doing: >>> ruby dbcdb/test/all.rb >>> Not your wacky thing with -e and require. Dunno if that will fix it, >>> but it is standard practice this way. >> It does fix it, thanks! I'm trying to remember why I started doing >> the require thing - I guess it was the easiest way to get a ruby >> command line that worked from Emacs no matter what directory a given >> buffer was in. > You still shouldn't do that. I guess I'm curious why using require is good in ruby files but bad from the command line. Or is it bad in files too? (And, if so, what's the replacement?) Is it just an issue of what's idiomatic (no problem with that, idioms are important), or am I missing something deeper? David Carlton carlton@bactrian.org