Phlip
4/2/2008 4:04:00 PM
goodieboy wrote:
> Hi,
>
> I'm writing some tests for a library, and don't want to "require"
> every single module/class. Anyone know if a quick way to set autoload
> for all modules/classes for library?
Autoload is a Rails feature, and it's not strictly recommendable.
So the question turns to - why are your modules and classes hard to require? Do
you have a balanced set of .rb files, where each one requires the things it
uses? Can't you just pull all class of a module in with one top-level require?
--
Phlip