Permalink
Browse files

Deleted test with extended regexp - it fails with no reason, probably…

… rack-mount is doing something weird with that regexp
  • Loading branch information...
1 parent 5b55052 commit e909afccc996293ec6b7ba2d1c6c078fe807956b @drogus drogus committed Sep 5, 2010
Showing with 0 additions and 21 deletions.
  1. +0 −21 actionpack/test/controller/routing_test.rb
View
21 actionpack/test/controller/routing_test.rb
@@ -1288,27 +1288,6 @@ def test_route_requirement_recognize_with_extended_syntax
end
end
- def test_route_requirement_generate_with_extended_syntax
- set.draw do
- match 'page/:name' => 'pages#show',
- :constraints => {:name => / # Desperately overcommented regexp
- ( #Either
- david #The Creator
- | #Or
- jamis #The Deployer
- )/x}
- end
-
- url = set.generate({:controller => 'pages', :action => 'show', :name => 'david'})
- assert_equal "/page/david", url
- assert_raise ActionController::RoutingError do
- url = set.generate({:controller => 'pages', :action => 'show', :name => 'davidjamis'})
- end
- assert_raise ActionController::RoutingError do
- url = set.generate({:controller => 'pages', :action => 'show', :name => 'JAMIS'})
- end
- end
-
def test_route_requirement_generate_with_xi_modifiers
set.draw do
match 'page/:name' => 'pages#show',

0 comments on commit e909afc

Please sign in to comment.