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,
    Victor



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 }

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to