aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-04 22:10:13 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-04 23:05:27 +0100
commitbd729344a7ac747cccaeed983d435fc36c905683 (patch)
treefbb36d766916c5d087a0ee8d4574cfdd57bd0081 /actionpack/test/controller
parent79438b46382aa08ea83d740247eb16365e6d2327 (diff)
downloadrails-bd729344a7ac747cccaeed983d435fc36c905683.tar.gz
rails-bd729344a7ac747cccaeed983d435fc36c905683.tar.bz2
rails-bd729344a7ac747cccaeed983d435fc36c905683.zip
Remove deprecated formatted named routes
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/url_rewriter_test.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/actionpack/test/controller/url_rewriter_test.rb b/actionpack/test/controller/url_rewriter_test.rb
index 428f40b9f8..139d91f8ac 100644
--- a/actionpack/test/controller/url_rewriter_test.rb
+++ b/actionpack/test/controller/url_rewriter_test.rb
@@ -347,24 +347,6 @@ class UrlWriterTests < ActionController::TestCase
end
end
- def test_formatted_url_methods_are_deprecated
- with_routing do |set|
- set.draw do |map|
- resources :posts
- end
- # We need to create a new class in order to install the new named route.
- kls = Class.new { include ActionController::UrlWriter }
- controller = kls.new
- params = {:id => 1, :format => :xml}
- assert_deprecated do
- assert_equal("/posts/1.xml", controller.send(:formatted_post_path, params))
- end
- assert_deprecated do
- assert_equal("/posts/1.xml", controller.send(:formatted_post_path, 1, :xml))
- end
- end
- end
-
def test_multiple_includes_maintain_distinct_options
first_class = Class.new { include ActionController::UrlWriter }
second_class = Class.new { include ActionController::UrlWriter }