Skip to content

Commit 729f605

Browse files
committed
Fix Rails 5 deprecation warning for get request spec
DEPRECATION WARNING: `ActionDispatch::IntegrationTest` HTTP request methods will accept only the following keyword arguments in future Rails versions: params, headers, env, xhr, as Examples: get '/profile', params: { id: 1 }, headers: { 'X-Extra-Header' => '123' }, env: { 'action_dispatch.custom' => 'custom' }, xhr: true, as: :json
1 parent 6402eb6 commit 729f605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/requests/api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def headers_with_token(token)
1818
stub_request(:get, "https://account.radiusnetworks.com/auth/radius/user.json?oauth_token=123")
1919
.to_return(status: 200, body: json)
2020

21-
get api_index_path, nil, headers_with_token("123")
21+
get api_index_path, params: {}, headers: headers_with_token("123")
2222

2323
expect(response.status).to be 200
2424
end

0 commit comments

Comments
 (0)