diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-14 15:03:29 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-17 16:08:31 -0500 |
commit | 13ddc92e079e59a0b894e31bf5bb4fdecbd235d1 (patch) | |
tree | 3b39bed26236eb934465cae5f74d4cc3057f9598 /actionpack/test/dispatch/test_response_test.rb | |
parent | 12f55cefde5902962aa8e740c50e5bb4fc6fb53a (diff) | |
download | rails-13ddc92e079e59a0b894e31bf5bb4fdecbd235d1.tar.gz rails-13ddc92e079e59a0b894e31bf5bb4fdecbd235d1.tar.bz2 rails-13ddc92e079e59a0b894e31bf5bb4fdecbd235d1.zip |
Remove deprecated methods in ActionDispatch::TestResponse
`#success?`, `missing?` and `error?` were deprecated in Rails 5.2 in favor of
`#successful?`, `not_found?` and `server_error?`.
Diffstat (limited to 'actionpack/test/dispatch/test_response_test.rb')
-rw-r--r-- | actionpack/test/dispatch/test_response_test.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/actionpack/test/dispatch/test_response_test.rb b/actionpack/test/dispatch/test_response_test.rb index f0b8f7785d..2629a61057 100644 --- a/actionpack/test/dispatch/test_response_test.rb +++ b/actionpack/test/dispatch/test_response_test.rb @@ -27,11 +27,4 @@ class TestResponseTest < ActiveSupport::TestCase response = ActionDispatch::TestResponse.create(200, { "Content-Type" => "application/json" }, '{ "foo": "fighters" }') assert_equal({ "foo" => "fighters" }, response.parsed_body) end - - test "response status aliases deprecated" do - response = ActionDispatch::TestResponse.create - assert_deprecated { response.success? } - assert_deprecated { response.missing? } - assert_deprecated { response.error? } - end end |