> 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.
> 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.
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
> DEPRECATION WARNING: `render :text` is deprecated because it does not
> actually render a `text/plain` response. Switch to `render plain:
> 'plain text'` to render as `text/plain`, `render html:
> '<strong>HTML</strong>'` to render as `text/html`, or `render body:
> 'raw'` to match the deprecated behavior and render with the default
> Content-Type, which is `text/html`.
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>