Skip to content

Commit

Permalink
Deleted test with extended regexp - it fails with no reason, probably…
Browse files Browse the repository at this point in the history
… rack-mount is doing something weird with that regexp
  • Loading branch information
drogus committed Sep 5, 2010
1 parent 5b55052 commit e909afc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions actionpack/test/controller/routing_test.rb
Expand Up @@ -1288,27 +1288,6 @@ def test_route_requirement_recognize_with_extended_syntax
end end
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 def test_route_requirement_generate_with_xi_modifiers
set.draw do set.draw do
match 'page/:name' => 'pages#show', match 'page/:name' => 'pages#show',
Expand Down

0 comments on commit e909afc

Please sign in to comment.