diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-10 04:54:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-09 23:57:13 -0300 |
commit | a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61 (patch) | |
tree | 5a40fc396c63770ffeb1093f73c713d8640a4cb9 /actionpack/test/controller | |
parent | 6c24e47edaac6e502a3800f41890c3a787b7ad3a (diff) | |
download | rails-a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61.tar.gz rails-a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61.tar.bz2 rails-a2762d95c6f2c1cf6ba96002ffb5ebea7c3eac61.zip |
Remove deprecated support for status option in head
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 70e5760764..cc4fe5c6b4 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -173,14 +173,6 @@ class TestController < ActionController::Base fresh_when(last_modified: Time.now.utc.beginning_of_day, etag: [ :foo, 123 ]) end - def head_with_status_hash - head status: :created - end - - def head_with_hash_does_not_include_status - head warning: :deprecated - end - def head_created head :created end @@ -670,19 +662,6 @@ class HeadRenderTest < ActionController::TestCase assert_response :created end - def test_passing_hash_to_head_as_first_parameter_deprecated - assert_deprecated do - get :head_with_status_hash - end - end - - def test_head_with_default_value_is_deprecated - assert_deprecated do - get :head_with_hash_does_not_include_status - assert_response :ok - end - end - def test_head_created_with_application_json_content_type post :head_created_with_application_json_content_type assert @response.body.blank? |