Skip to content

Version 1.0.4 is incompatible with Ruby 3.0.0 #69

Closed
@ElMonx

Description

@ElMonx

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions