Closed
Description
Using Rails 6.1.3.1, Ruby 3.0.0 and rails-controller-testing 1.0.4, calling:
post users_path, params: { user: { first_name: 'Test', last_name: 'Testington' } }
or:
patch user_path(@user), params: { user: { first_name: 'Test', last_name: 'Testington' } }
causes the following error:
ArgumentError: wrong number of arguments (given 2, expected 1)
On 1.0.5 this doesn't happen anymore, I think since #58 was merged (adding **kwargs in the testing integration module).
Since it took me a while to track down the source of the problem and it could happen to somebody else, I think it would be useful to have this incompatibility noted somewhere in the Readme.
Metadata
Metadata
Assignees
Labels
No labels