[rspec-users] Troubles with route_for

David Chelimsky dchelimsky at gmail.com
Wed Jan 13 11:27:47 EST 2010


On Wed, Jan 13, 2010 at 10:20 AM, Nick Hoffman <lists at ruby-forum.com> wrote:

> David Chelimsky wrote:
> > On Tue, Jan 12, 2010 at 11:35 AM, Nick Hoffman <lists at ruby-forum.com>
> > wrote:
> >
> >> By the way, does this spec:
> >>    {:get => '/path'}.should route_to(...)
> >> make this spec redundant?:
> >>    params_from(:get, '/path').should == {...}
> >>
> >
> > Yes - route_to checks both sides of the translation.
>
> Great, thanks for that, David!


Thank Randy Harmon for this one.  It was he who recognized and solved the
problems with params_from by adding the route_to matcher.


> And thanks again for all of your sweat
> and blood with RSpec and RSpec-Rails!
>

It's a labor of love, but you're welcome :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100113/b09680ec/attachment.html>


More information about the rspec-users mailing list