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:
parent
c757e9b60a
commit
adae55f476
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue