[rspec-users] Specs for code stored in rails_app/lib/
dchelimsky at gmail.com
Thu May 24 17:28:30 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:
> > On 5/24/07, Coda Hale <coda.hale at gmail.com> wrote:
> > > 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
> > > /libraries.
> > I'd definitely have the specs for lib in spec/lib. As for your
> > helpers, how about spec/helpers????
> Thanks for the quick reply!
> I'm not sure if I was clear -- I'm not looking for a place to put the
> specs for my helpers. That's obviously /sepc/helpers. I'm looking for
> a place to put the support classes for the specs -- custom matchers,
> etc. If I stuff them all in spec_helper.rb, it'll grow to be
> unmanageably large.
Right - I understood the question. I spaced for a second that we
already have spec/helpers - sorry. Pick any name you like other than
lib, models, views, controllers, helpers, etc. But definitely in a
subdirectory there. How about support, or common, or inc, or something
> Coda Hale
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users