This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
USAGE: ruby-rewrite -l controller_actions_keyword_args.rb -m <FILE> | |
This rewriter moves your Rails controller tests from `get action, params, session, flash` to | |
`get action, params: params, session: session, flash: flash`. | |
Which is needed if you see the following message in your Rails 5.0 tests : | |
DEPRECATION WARNING: Using positional arguments in functional tests has been deprecated, | |
in favor of keyword arguments, and will be removed in Rails 5.1. |