diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-17 16:36:39 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-17 17:35:19 -0500 |
commit | d50413826f1892b5d1250f578b283d52b85b4f6c (patch) | |
tree | 58d2a8f02ebfdfbdc49a55de496d101466a8dd80 /actionpack | |
parent | d0f4d93df823d5124d8f2cc740471d458633c338 (diff) | |
download | rails-d50413826f1892b5d1250f578b283d52b85b4f6c.tar.gz rails-d50413826f1892b5d1250f578b283d52b85b4f6c.tar.bz2 rails-d50413826f1892b5d1250f578b283d52b85b4f6c.zip |
Invalid route requirements should always raise an exception even if they are unused
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 7c88520bac..cd13f36681 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -1019,14 +1019,6 @@ class RouteSetTest < ActiveSupport::TestCase map.connect 'page/:id', :controller => 'pages', :action => 'show', :id => /\d+\z/ end end - assert_nothing_raised do - set.draw do |map| - map.connect 'page/:id', :controller => 'pages', :action => 'show', :id => /\d+/, :name => /^(david|jamis)/ - end - assert_raise ActionController::RoutingError do - set.generate :controller => 'pages', :action => 'show', :id => 10 - end - end end def test_route_requirements_with_invalid_http_method_is_invalid |