Permalink
Browse files

Invalid route requirements should always raise an exception even if t…

…hey are unused
  • Loading branch information...
1 parent d0f4d93 commit d50413826f1892b5d1250f578b283d52b85b4f6c @josh josh committed Oct 17, 2009
Showing with 0 additions and 8 deletions.
  1. +0 −8 actionpack/test/controller/routing_test.rb
@@ -1019,14 +1019,6 @@ def test_route_requirements_with_anchor_chars_are_invalid
map.connect 'page/:id', :controller => 'pages', :action => 'show', :id => /\d+\z/
end
end
- assert_nothing_raised do
- set.draw do |map|
- map.connect 'page/:id', :controller => 'pages', :action => 'show', :id => /\d+/, :name => /^(david|jamis)/
- end
- assert_raise ActionController::RoutingError do
- set.generate :controller => 'pages', :action => 'show', :id => 10
- end
- end
end
def test_route_requirements_with_invalid_http_method_is_invalid

0 comments on commit d504138

Please sign in to comment.