1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
eileencodes 2015-03-20 08:46:25 -04:00
parent c757e9b60a
commit adae55f476

View file

@ -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