[rspec-users] Specs for code stored in rails_app/lib/
dchelimsky at gmail.com
Thu May 24 17:17:29 EDT 2007
On 5/24/07, Coda Hale <coda.hale at gmail.com> wrote:
> On 5/24/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > I don't think this is too simplistic - as long as the nested dirs
> > align in lib and spec/lib, then the regexp matcher will include the
> > '/'es, and all will be right with the world.
> > In truth, I already implemented exactly what you have there (in a
> > hurry to get a release out today), but if you file the above in the
> > tracker I'll be more than happy to add you to the contributor page.
> A related question -- where do spec support files go? For example,
> I've got more than a few one-off matchers and such, and having a
> 500-line spec_helper.rb doesn't seem workable.
> I ended up putting mine in /spec/lib, and the specs for /lib files in
I'd definitely have the specs for lib in spec/lib. As for your
helpers, how about spec/helpers????
> Any ideas?
> Coda Hale
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users