diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-02 23:16:51 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:58:41 -0300 |
commit | e4cfd353a47369dd32198b0e67b8cbb2f9a1c548 (patch) | |
tree | c6faa39f027512f0f1d1ca1ac44c28182261a933 /actionpack/test/controller | |
parent | 755dcd0691f74079c24196135f89b917062b0715 (diff) | |
download | rails-e4cfd353a47369dd32198b0e67b8cbb2f9a1c548.tar.gz rails-e4cfd353a47369dd32198b0e67b8cbb2f9a1c548.tar.bz2 rails-e4cfd353a47369dd32198b0e67b8cbb2f9a1c548.zip |
Remove deprecated option `use_route` in controller tests
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/test_case_test.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index ba2ff7d12c..2e1f21c645 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -521,18 +521,6 @@ XML end end - def test_use_route - with_routing do |set| - set.draw do - get 'via_unnamed_route', to: 'test_case_test/test#test_uri' - get 'via_named_route', as: :a_named_route, to: 'test_case_test/test#test_uri' - end - - assert_deprecated { get :test_uri, use_route: :a_named_route } - assert_equal '/via_named_route', @response.body - end - end - def test_assert_realistic_path_parameters get :test_params, :id => 20, :foo => Object.new @@ -790,19 +778,6 @@ module EngineControllerTests assert_equal @response.body, 'bar' end end - - class BarControllerTestWithHostApplicationRouteSet < ActionController::TestCase - tests BarController - - def test_use_route - with_routing do |set| - set.draw { mount Engine => '/foo' } - - assert_deprecated { get :index, use_route: :foo } - assert_equal @response.body, 'bar' - end - end - end end class InferringClassNameTest < ActionController::TestCase |