aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-08 18:27:05 -0400
committerGitHub <noreply@github.com>2017-08-08 18:27:05 -0400
commitd5d5f42888e8d6466f740821de288e0892d38ccd (patch)
treee00f4a43e56eee5bd73d6cf8832f0417e87d46f7 /actionpack/test/dispatch
parent7960ae27c8eb147e1c183a97d3b87492f897cdd7 (diff)
parentaf3500b18817a48d7ec83812a0d4869f3fe33b2f (diff)
downloadrails-d5d5f42888e8d6466f740821de288e0892d38ccd.tar.gz
rails-d5d5f42888e8d6466f740821de288e0892d38ccd.tar.bz2
rails-d5d5f42888e8d6466f740821de288e0892d38ccd.zip
Merge pull request #30104 from trev/deprecate-actiondispatch-testresponse-alias
Deprecate ActionDispatch::TestResponse response aliases
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r--actionpack/test/dispatch/test_response_test.rb7
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