From bd729344a7ac747cccaeed983d435fc36c905683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 4 Jan 2010 22:10:13 +0100 Subject: Remove deprecated formatted named routes --- actionpack/test/controller/url_rewriter_test.rb | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'actionpack/test/controller') 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 } -- cgit v1.2.3