Ho-Sheng Hsiao wrote: >> The one thing I'm still definitely still not getting to work right is >> auto-loading of classes. Maybe because "RAILS_ROOT" for the >> plugin_test_helper ends up being my_plugin/spec/app_helper -- but my >> classes are all in my_plugin/lib and my_plugin/app and such places. > > I don't know if you've seen this: > http://railsguts.com/initialization.html > > Browsing through the plugin_test_helper code, they have some hooks to > modify that initialization process, so that might be a way.
The question is why the plugin_test_helper code hooking into the initialization process isn't actually _working_ to autoload the classes in my plugin! Well, I guess I can poor through the code. It's odd to me, because I wouldn't think switching out Test::Unit for rspec should effect that at ALL, I can't figure out how this works for anyone if it's not working for me. Oh well, that's why they call it debugging I guess. [I just want to get to _writing my code and tests_, not be spending all this time on infrastructure! Still surprised that this isn't a common problem someone else has already solved.] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

