Hi,
I have the following route defined in routes.rb:
map.search 'fuzzyleads/search/:url', :controller => 'fuzzyleads', :action => 'search', :method => 'get'
The problem is that I cannot get this test to pass:
def test_search_route
assert_generates "fuzzyleads/search/someurl", { :controller => "fuzzyleads", :action => "search", :url => "someurl" }
end
It does not like the url part, I get the following error:
found extras <{:url=>"someurl"}>, not <{}>
I have no idea why, can anyone see what I am doing wrong?
Cheers
Paul