aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-07-30 23:08:59 +0200
committerXavier Noria <fxn@hashref.com>2014-07-30 23:08:59 +0200
commitbd944e078d0f40e26d66b03da1449ff9cdcc101b (patch)
tree23d3b309dd1ac152047fb38d0d3107177b7c6c8a /actionpack/test
parent30194a5b475ea91f9709f64a08e6645cedbe4cb5 (diff)
parent2bbcca004cc232cef868cd0e301f274ce5638df0 (diff)
downloadrails-bd944e078d0f40e26d66b03da1449ff9cdcc101b.tar.gz
rails-bd944e078d0f40e26d66b03da1449ff9cdcc101b.tar.bz2
rails-bd944e078d0f40e26d66b03da1449ff9cdcc101b.zip
Merge pull request #15840 from schneems/schneems/deprecate-mailer_path_methods
Deprecate `*_path` methods in mailers
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/routing/helper_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/test/routing/helper_test.rb b/actionpack/test/routing/helper_test.rb
index 0028aaa629..09ca7ff73b 100644
--- a/actionpack/test/routing/helper_test.rb
+++ b/actionpack/test/routing/helper_test.rb
@@ -26,6 +26,20 @@ module ActionDispatch
x.new.pond_duck_path Duck.new
end
end
+
+ def test_path_deprecation
+ rs = ::ActionDispatch::Routing::RouteSet.new
+ rs.draw do
+ resources :ducks
+ end
+
+ x = Class.new {
+ include rs.url_helpers(false)
+ }
+ assert_deprecated do
+ assert_equal '/ducks', x.new.ducks_path
+ end
+ end
end
end
end