Skip to content

Ruby 3 keyword arg updates (part 6)

Steve Abrams requested to merge ruby-3-updates-6 into master

What does this MR do and why?

Updates some specs in preparation for upgrading to Ruby 3. These are updating object hash/keyword arguments as described here: https://docs.gitlab.com/ee/development/ruby3_gotchas.html#rspec-with-argument-matcher-fails-for-shorthand-hash-syntax. This is a small subset of these changes, other MRs will include additional changes to keep the MRs a reasonable size.

This also ensures that these changes are compatible with our current Ruby 2.7.7 before we make the upgrade.

Related to gitlab-com/gl-infra/delivery#2864 (closed).

Author Check-list

  • [-] Has documentation been updated?

Merge request reports