Skip to content

Remove deprecation warning for Ruby 2.7 #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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