$ spec spec/controllers/foods_controller_spec.rb
............................F.
1)
Test::Unit::AssertionFailedError in 'FoodsController GET search/almonds should map {:controller => :foods, :action => :search, :name => 'almonds'} to /foods/search/almond
s'
found extras <{:name=>"almonds"}>, not <{}>
If you're expecting this failure, we suggest { :get => "/foods/search/almonds" }.should_not be_routable
./spec/controllers/foods_controller_spec.rb:239:
Finished in 0.249979 seconds
30 examples, 1 failure