On Aug 31, 2008, at 10:36 AM, Chuck Remes wrote:

I looked through the mailing list archive but unfortunately my search terms are too generic (spec and require...).

I am writing ruby code that runs under jruby in an embedded environment. Periodically I will install new code that passes all specs only to have it fail when it can't find a new class I defined (missing #require).

My spec_helper.rb file does a wildcard search and loads all rb files in the tree,

Why? Why don't you just have it load lib/your_project_name.rb, which requires everything else?

Scott

so it always picks up new files. Clearly I need to change that and be more specific in my require lines.

Any suggestions on how to best accomplish this?

cr

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to