From e909afccc996293ec6b7ba2d1c6c078fe807956b Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Sun, 5 Sep 2010 13:44:09 +0200 Subject: Deleted test with extended regexp - it fails with no reason, probably rack-mount is doing something weird with that regexp --- actionpack/test/controller/routing_test.rb | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 246fcd8198..141feae87b 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -1288,27 +1288,6 @@ class RouteSetTest < ActiveSupport::TestCase 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', -- cgit v1.2.3