diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-11-23 01:39:17 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-11-23 01:42:46 -0800 |
commit | 8e73abbda8d3a55459bac728530606fdf69468f5 (patch) | |
tree | 7a5bdfc3f99f73424aaa9cebf4ab3a741978b579 /actionpack/test | |
parent | c23bb156fe29481c3c900e9a4bd3c1f84e71c6d0 (diff) | |
download | rails-8e73abbda8d3a55459bac728530606fdf69468f5.tar.gz rails-8e73abbda8d3a55459bac728530606fdf69468f5.tar.bz2 rails-8e73abbda8d3a55459bac728530606fdf69468f5.zip |
Deprecate `use_route` in controller tests
Reference #17453
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/test_case_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index fdabad3abd..ba2ff7d12c 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -528,7 +528,7 @@ XML get 'via_named_route', as: :a_named_route, to: 'test_case_test/test#test_uri' end - get :test_uri, use_route: :a_named_route + assert_deprecated { get :test_uri, use_route: :a_named_route } assert_equal '/via_named_route', @response.body end end @@ -798,7 +798,7 @@ module EngineControllerTests with_routing do |set| set.draw { mount Engine => '/foo' } - get :index, use_route: :foo + assert_deprecated { get :index, use_route: :foo } assert_equal @response.body, 'bar' end end |