Hi folks, In order to bring some order to the many model classes that I have under /app/models, I'm created a new directory (for example): /app/models/nestdir
I've added the required configuration line in environment.rb: config.load_paths += %W( #{RAILS_ROOT}/app/models/nestdir ) But, when I run my specs, I get an error such as: ... dependencies.rb:428:in `load_missing_constant': Expected RAILS_ROOT/ app/models/nestdir/my_model.rb to define Nestdir::MyModel (LoadError) ... >From my understanding, the models in the dir listed in config.load_paths should be available in the root Rails namespace. Is this not how rspec handles things? Is there a standard way of setting up specs for nested model directories? The models are not nested within a parent module (like Nestdir, which would have matched the directory name). Thanks, Kyle _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users