diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-17 21:21:34 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-17 21:21:34 -0500 |
commit | f1767c1513172415d53f8aa347d9936f85560128 (patch) | |
tree | 9e0309d7e71eb99888b06b37f3e75998bf28ebaf /actionpack/test | |
parent | cc0103fe833d556e750fd040e34cf0165c3c7ccc (diff) | |
download | rails-f1767c1513172415d53f8aa347d9936f85560128.tar.gz rails-f1767c1513172415d53f8aa347d9936f85560128.tar.bz2 rails-f1767c1513172415d53f8aa347d9936f85560128.zip |
Drop legacy support for case insensitive controller recognition
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index def5ff4957..3b70e7162c 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -490,17 +490,6 @@ class LegacyRouteSetTests < Test::Unit::TestCase assert_equal '/content', rs.generate({:controller => 'content'}, {:controller => 'content', :action => 'show'}) end - def test_recognition_with_uppercase_controller_name - @rs.draw {|m| m.connect ':controller/:action/:id' } - assert_equal({:controller => "content", :action => 'index'}, rs.recognize_path("/Content")) - assert_equal({:controller => "content", :action => 'list'}, rs.recognize_path("/ConTent/list")) - assert_equal({:controller => "content", :action => 'show', :id => '10'}, rs.recognize_path("/CONTENT/show/10")) - - # these used to work, before the routes rewrite, but support for this was pulled in the new version... - #assert_equal({'controller' => "admin/news_feed", 'action' => 'index'}, rs.recognize_path("Admin/NewsFeed")) - #assert_equal({'controller' => "admin/news_feed", 'action' => 'index'}, rs.recognize_path("Admin/News_Feed")) - end - def test_requirement_should_prevent_optional_id rs.draw do |map| map.post 'post/:id', :controller=> 'post', :action=> 'show', :requirements => {:id => /\d+/} |