Skip to content

Fix Ruby 2.7 deprecation warnings in issue_activity_unique_counter_spec

What does this MR do?

Fix Ruby 2.7 kwargs deprecation warnings for issue_activity_unique_counter_spec

As mentioned in https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/, Ruby 2.7 introduces the following deprecation warning:

warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related #257438 (closed)

Edited by Alina Mihaila

Merge request reports