Ruby 3 keyword arg spec updates (part 3)
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?