When I upgraded from ruby 2.5.7
to ruby 2.6.5
with a rails 6.0.2
app, then all the rspec tests fail. An example error is
An error occurred while loading ./spec/models/account_spec.rb.
Failure/Error: require File.expand_path('../../config/environment', __FILE__)
ArgumentError:
unknown keywords: whitelist_classes, whitelist_symbols
# ./config/application.rb:7:in `<top (required)>'
# ./config/environment.rb:2:in `require_relative'
# ./config/environment.rb:2:in `<top (required)>'
# ./spec/rails_helper.rb:2:in `<top (required)>'
# ./spec/models/account_spec.rb:1:in `<top (required)>'
No examples found.
Line 7 of application.rb
is
Bundler.require(*Rails.groups)
I suspect I need to upgrade one or more of the gems. How do I fix this?