Ruby on Rails 6 with RSpec: ActionView::Template::Error
There is a big chance that after updating your project to rails 6.0.0 your controller specs will break with:
ActionView::Template::Error: wrong number of arguments (given 2, expected 1)
The only solution that currently works is to update rspec-rails
to version 4.0.0.beta2
.
# Gemfile
group :test do
gem 'rspec-rails', '~> 4.0.0.beta2'
end
Tweet