[rspec-users] Troubles with route_for

David Chelimsky dchelimsky at gmail.com
Wed Jan 13 09:33:12 EST 2010


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.


> They read the same, but it feels like they each check one end of the
> route's translation.
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100113/5158766f/attachment.html>


More information about the rspec-users mailing list