On Tue, Jan 12, 2010 at 11:35 AM, Nick Hoffman <li...@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@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to