Unwrap text
In actionpack/test/controller/routing_test.rb
def test_route_for_query_string
rs.draw do |map|
map.connect ':controller/:action/:id'
end
assert_equal({:controller => "content", :action => "foo", :place => "Pune", :state => "MH"}, rs.recognize_path("/content/foo?place=Pune&state=MH"))
end
gives
8) Error:
test_route_for_query_string(LegacyRouteSetTests):
ActionController::RoutingError: No route matches "/content/foo?place=Pune&state=MH" with {}
./test/../lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path'
./test/controller/routing_test.rb:185:in `test_route_for_query_string'
./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `__send__'
./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run'