Slide 95
Slide 95 text
@etagwerker | #RailsUpgrades | https://fastruby.io/upgrade
95
$ docker-compose exec app \
next rspec spec/controllers
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.
(called from block (4 levels) in at /usr/src/app/spec/
controllers/admin/petition_tags_controller_spec.rb:46)
DEPRECATION WARNING: Using positional arguments in functional tests has been
deprecated,
in favor of keyword arguments, and will be removed in Rails 5.1.