Use kwargs in ActionController::TestCase and ActionDispatch::Integration HTTP methods by kirs · Pull Request #18323 · rails/rails
As @dhh suggested, controller HTTP methods are a prime candidate for kwargs. post url, nil, nil, { a: 'b' } doesn't make sense. More explicit way would be: post url, params: { y: x }, s...