Skip to content
Browse files

Relax generation requirements and only enforce the requirements used …

…in the path segment
  • Loading branch information...
1 parent 01e04a4 commit 91726c201bf91b08dcb75f8d129d1002c489b79d @josh josh committed Oct 18, 2009
Showing with 0 additions and 13 deletions.
  1. +0 −13 actionpack/test/controller/routing_test.rb
View
13 actionpack/test/controller/routing_test.rb
@@ -997,19 +997,6 @@ def test_route_requirements_with_head_method_condition_is_invalid
end
end
- def test_non_path_route_requirements_match_all
- set.draw do |map|
- map.connect 'page/37s', :controller => 'pages', :action => 'show', :name => /(jamis|david)/
- end
- assert_equal '/page/37s', set.generate(:controller => 'pages', :action => 'show', :name => 'jamis')
- assert_raise ActionController::RoutingError do
- set.generate(:controller => 'pages', :action => 'show', :name => 'not_jamis')
- end
- assert_raise ActionController::RoutingError do
- set.generate(:controller => 'pages', :action => 'show', :name => 'nor_jamis_and_david')
- end
- end
-
def test_recognize_with_encoded_id_and_regex
set.draw do |map|
map.connect 'page/:id', :controller => 'pages', :action => 'show', :id => /[a-zA-Z0-9\+]+/

0 comments on commit 91726c2

Please sign in to comment.
Something went wrong with that request. Please try again.