Skip to content
Browse files

Drop legacy support for case insensitive controller recognition

  • Loading branch information...
1 parent cc0103f commit f1767c1513172415d53f8aa347d9936f85560128 @josh josh committed Oct 17, 2009
Showing with 0 additions and 11 deletions.
  1. +0 −11 actionpack/test/controller/routing_test.rb
View
11 actionpack/test/controller/routing_test.rb
@@ -490,17 +490,6 @@ def test_action_expiry
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+/}

0 comments on commit f1767c1

Please sign in to comment.
Something went wrong with that request. Please try again.