aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2015-03-20 08:46:25 -0400
committereileencodes <eileencodes@gmail.com>2015-03-20 08:48:10 -0400
commitadae55f4764cae241a8dc1ef9ba51611bb53a679 (patch)
tree14273baf03c748706e5b2a2a5e1df269f0be658e /actionpack
parentc757e9b60a71e585f48c8b9426ab3d979a5967ee (diff)
downloadrails-adae55f4764cae241a8dc1ef9ba51611bb53a679.tar.gz
rails-adae55f4764cae241a8dc1ef9ba51611bb53a679.tar.bz2
rails-adae55f4764cae241a8dc1ef9ba51611bb53a679.zip
Fix kwargs warning in `test_get_xml`
ActionDispatch::IntegrationTest HTTP request methods will accept only certain kwargs in the future. This test caused a deprecation warning when running ActionPack tests. Added `params` and `headers` to fix.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/integration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb
index f0d92eb427..a87059bee4 100644
--- a/actionpack/test/controller/integration_test.rb
+++ b/actionpack/test/controller/integration_test.rb
@@ -422,7 +422,7 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest
def test_get_xml
with_test_route_set do
- get "/get", {}, {"HTTP_ACCEPT" => "application/xml"}
+ get "/get", params: {}, headers: {"HTTP_ACCEPT" => "application/xml"}
assert_equal 200, status
assert_equal "OK", status_message
assert_response 200