I'm trying to add Rails 5 support to an engine which (among other things) has a generator for controller tests.
I've ran into the keyword arguments deprecation warning at the bottom of this e-mail, and I'm in a bind now. If I use keyword arguments to get rid of the warnings, I lose Rails 4 compatibility.
So far, I've managed to write tests that work in current Rails and previous Rails, and I hope I'll be able to do that in the future. Is there any chance that the keyword arguments will be backported to Rails 4 via a gem, like strong_parameters were backported to Rails 3?
Thank you,
DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
keyword arguments in future Rails versions.
Examples:
get :show, params: { id: 1 }, session: { user_id: 1 }
process :update, method: :post, params: { id: 1 }