Use new rspec syntax for rest_spec.rb
What does this MR do and why?
These turn into failures if run the specs with Ruby 3
We are running a pipeline with Ruby 3, and recently updated rspec-mocks. To get these specs to pass we should use the syntax in this MR.
Similar to !86157 (merged)
How to set up and validate locally
Run spec in Ruby 2 & 3, both will pass
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.