diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 11:55:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-14 11:55:50 -0700 |
commit | b10b279b97b0174d6e157d03845921f04f19d0ad (patch) | |
tree | 25a73306226a5d8ba3108168c4f43c9181278215 /actionpack/test | |
parent | b6146b0d967c34f104c7301ecc62b2d866bbb5c0 (diff) | |
download | rails-b10b279b97b0174d6e157d03845921f04f19d0ad.tar.gz rails-b10b279b97b0174d6e157d03845921f04f19d0ad.tar.bz2 rails-b10b279b97b0174d6e157d03845921f04f19d0ad.zip |
deprecate passing a string for both the beginning path and :path option
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 6e8d7ca7a9..332a550de0 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -361,9 +361,12 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end def test_pagemarks + tc = self draw do scope "pagemark", :controller => "pagemarks", :as => :pagemark do - get "new", :path => "build" + tc.assert_deprecated do + get "new", :path => "build" + end post "create", :as => "" put "update" get "remove", :action => :destroy, :as => :remove |