aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/routing_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-08-09 22:38:50 -0500
committerJoshua Peek <josh@joshpeek.com>2009-08-09 22:53:16 -0500
commit734e903af5913342c65d4c294e45f9095fa89986 (patch)
tree1348979ed6b3bcd3b41da4f75dd742174fec9af2 /actionpack/test/controller/routing_test.rb
parent82dd725fc195eb52eea9cbde9530ab9dff122e32 (diff)
downloadrails-734e903af5913342c65d4c294e45f9095fa89986.tar.gz
rails-734e903af5913342c65d4c294e45f9095fa89986.tar.bz2
rails-734e903af5913342c65d4c294e45f9095fa89986.zip
Deprecate router generation "best match" sorting
Diffstat (limited to 'actionpack/test/controller/routing_test.rb')
-rw-r--r--actionpack/test/controller/routing_test.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index 5f9ae6292c..2534c232c7 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -1610,7 +1610,7 @@ class RouteTest < Test::Unit::TestCase
end
end
-class RouteSetTest < Test::Unit::TestCase
+class RouteSetTest < ActiveSupport::TestCase
def set
@set ||= ROUTING::RouteSet.new
end
@@ -2191,8 +2191,10 @@ class RouteSetTest < Test::Unit::TestCase
map.connect "/ws/people", :controller => "people", :action => "index", :ws => true
end
- url = set.generate(:controller => "people", :action => "index", :ws => true)
- assert_equal "/ws/people", url
+ assert_deprecated {
+ url = set.generate(:controller => "people", :action => "index", :ws => true)
+ assert_equal "/ws/people", url
+ }
end
def test_generate_changes_controller_module