[rspec-users] route_for

Yi hayafirst at gmail.com
Sun Mar 8 22:49:43 EDT 2009

Get restful-authentication and rspec trunk from github. And a couple tests
fail. One of them is this assertion:

route_for(:controller => 'users', :action => 'destroy', :id => '1').should
== "/users/1"

error msg is:

should route users's 'destroy' action correctly

The recognized options <{"action"=>"show", "id"=>"1",
"controller"=>"users"}> did not match <{"action"=>"destroy", "id"=>"1",
"controller"=>"users"}>, difference: <{"action"=>"destroy"}>

But  assert_generates from rails works fine.

I myself never used route_for helper before. So I am not sure is this is the
problem of the method, or restful_authentication author misused it, or rails
2.3RC2 breaks it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090308/165f6243/attachment.html>

More information about the rspec-users mailing list