Rails 5 deprecation warning for Controller tests
Rails 5 has changed its ActionController::TestCase::Behavior
to methods we use in controller tests and now you need to specify params
key to the requests.
So if you had this in you tests:
get :show, id: 1
You'll need to change to:
get :show, params: { id: 1 }
There is a warning message like this:
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 }
Even if you use Rpsec you will need to change because rspec-rails
uses this module to create the requests to the controllers.