Please sign in to comment.
Demonstrates a routing bug.
When you call 'request.params' in a constraint matcher, subsequent routes don't have their path attributes set correctly. In this case, a URL of '/about' would have params[:something] == 'about' in the route match ':id' Adding this constraint and route causes the following test to fail. 1) Failure: test_default_params(TestRoutingMapper) [/Users/joevandyk/projects/rails/actionpack/test/dispatch/routing_test.rb:1475]: <"home"> expected but was <nil>.
- Loading branch information...
Showing with 9 additions and 0 deletions.