Rails 7 Support
caseyprovost opened this issue · 5 comments
On the latest commit I am seeing the following for rails 7:
Failure/Error: get :index, params: { company_id: company }
ArgumentError:
wrong number of arguments (given 2, expected 1)
The offending line seems to be: rails-controller-testing-21014e48be12/lib/rails/controller/testing/integration.rb:13
Do you have the entire backtrace? How can I reproduce this error? We use this gem with Rails 7 and I don't see this error.
Duplicate of #69
@rafaelfranca I tried to clean up the stacktrace to protect the company but let me take another pass and I'll see if I can't find a better representation.
For clarity do you also test using the syntax above? get :index, params: { company_id: company }
Oh it's a Ruby 3 issue, totally forgot to mention we are on Ruby 3
Yes, exactly that. In #69 it seems the same problem was caused by a gem. The backtrace would be able to tell you that.