[rspec-users] Testing route globbing and limitations of get()
dchelimsky at gmail.com
Mon Jul 2 11:46:30 EDT 2007
On 7/2/07, David Leal <dgleal at gmail.com> wrote:
> Thanks for your answers, David. I'll investigate. It's still a bit hard for
> me to understand where are the boundaries between rails tests and rspec.
Spec::Rails, RSpec's rails plugin, wraps test/unit, so:
Model Examples work like Rails unit tests
View, Controller and Helper Examples work like Rails functional tests
We don't have a parallel to Rails integration tests.
> On 7/2/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > On 7/2/07, David Leal <dgleal at gmail.com> wrote:
> > > Hi David, thanks for your reply.
> > >
> > > Regarding the last topic below, there's something about which I'm not
> > > clear:
> > >
> > > The catchall method that I'm trying to test works by getting a path from
> > > request object passed to it (during testing it's a TestRequest object).
> If I
> > > understand correctly, there is no way to test this method without
> writing an
> > > integration test. But shouldn't the request object honor the path I've
> > > instead of resetting it?
> > I've never tried to do what you're doing so I can't answer from
> > experience. What I can tell you is that the TestRequest object is part
> > of Rails, not rspec, so you might have some good luck on the rails
> > forums and mailing lists.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users