diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-05 13:44:09 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-05 13:44:39 +0200 |
commit | e909afccc996293ec6b7ba2d1c6c078fe807956b (patch) | |
tree | e116d7cc1258ee23964d64c00261b9400b4ec466 /actionpack/test/controller | |
parent | 5b550523b70f0e1586fdd33dbe09191b4443c6d3 (diff) | |
download | rails-e909afccc996293ec6b7ba2d1c6c078fe807956b.tar.gz rails-e909afccc996293ec6b7ba2d1c6c078fe807956b.tar.bz2 rails-e909afccc996293ec6b7ba2d1c6c078fe807956b.zip |
Deleted test with extended regexp - it fails with no reason, probably rack-mount is doing something weird with that regexp
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 21 |
1 files changed, 0 insertions, 21 deletions
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', |