Displaying 1 result from an estimated 1 matches for "assertrout".
2008 Jan 02
1
assert_recognizes with requirements => {:method => something}
...;controller"=>"sessions"}> did not match <{"action"=>"create",
"controller"=>"sessions"}>, difference: <{"action"=>"create",
"method"=>:post}>
I have two problems:
1. In the API for AssertRouting, it shows these calls without
{ :method => xxx } in the first argument. Changing the first call to
assert_recognizes({:controller => ''sessions'', :action =>
''new'', :method => :get}, {:path => ''/login'', :method => :get})
work...