diff options
author | Trevor Wistaff <trev@a07.com.au> | 2017-08-07 13:35:11 +1000 |
---|---|---|
committer | Trevor Wistaff <trev@a07.com.au> | 2017-08-07 13:48:02 +1000 |
commit | af3500b18817a48d7ec83812a0d4869f3fe33b2f (patch) | |
tree | 0624352a23b8c10ae83e9caf4119005fbdc2a43b /actionpack/test/dispatch | |
parent | df94b863c2ff8f1bcf12e36ed8fc1419292668e7 (diff) | |
download | rails-af3500b18817a48d7ec83812a0d4869f3fe33b2f.tar.gz rails-af3500b18817a48d7ec83812a0d4869f3fe33b2f.tar.bz2 rails-af3500b18817a48d7ec83812a0d4869f3fe33b2f.zip |
Deprecate ActionDispatch::TestResponse response aliases
https://github.com/rails/rails/issues/30072
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/test_response_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/test_response_test.rb b/actionpack/test/dispatch/test_response_test.rb index 2629a61057..f0b8f7785d 100644 --- a/actionpack/test/dispatch/test_response_test.rb +++ b/actionpack/test/dispatch/test_response_test.rb @@ -27,4 +27,11 @@ 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 |