Skip to content

Conversation

ionut998
Copy link

Ruby 2.7 has deprecated passing the last argument as a keyword parameter. https://bugs.ruby-lang.org/issues/14183

Fixes the following

/rails-controller-testing/lib/rails/controller/testing/template_assertions.rb:61: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/rails/actionpack/lib/action_controller/test_case.rb:460: warning: The called method `process' is defined here

The fix is backwards compatible with Ruby < 2.7

Ruby 2.7 has deprecated passing the last argument as a keyword parameter. https://bugs.ruby-lang.org/issues/14183

Fixes the following
```
/rails-controller-testing/lib/rails/controller/testing/template_assertions.rb:61: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/rails/actionpack/lib/action_controller/test_case.rb:460: warning: The called method `process' is defined here
```

The fix is backwards compatible with Ruby < 2.7
@jhawthorn
Copy link
Member

Thank you! Fixed by #58

@jhawthorn jhawthorn closed this May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants