DEPRECATION WARNING: Using positional arguments in functional tests has been deprecated,
in favor of keyword arguments, and will be removed in Rails 5.1.
Deprecated style:
get :show, { id: 1 }, nil, { notice: "This is a flash message" }
New keyword style:
get :show, params: { id: 1 }, flash: { notice: "This is a flash message" },
session: nil # Can safely be omitted.
FIND #1:
^(.*(?:get|post|put|delete).*(?::index|:show),)(.*)$
FIND #2:
^(\s*(?:get|post|put|delete).*(?::[a-z_]+),)(.*(?:}|json|id))$
REPLACE:
$1 params: {$2 }