I’ve got enough models now that I’d like to separate them into
modules. For example, I have the class Player that I want to stick in
the Trainer module. I’ve changed the definition to
I’ve created a models/trainer dir, test/unit/trainer, and
test/fixtures/trainer. Change the PlayerTest class to be
Trainer::PlayerTest. I get the following error when I try to run it:
FixtureClassNotFound: The class “Player” was not found.
I’ve tried creating a model with script/generate model Trainer::Foo
just to see if there was any difference, but it looks like I have it
all right. Do I need to do any special class loading or something?
By the way, I’ve also changed the test helper require to be require
File.dirname(FILE) + ‘/…/…/test_helper’. I really want to group
these into modules, so I’d appreciate any advice.