Skip to content

Use new rspec syntax for rest_spec.rb

Roy Zwambag requested to merge rz-rest-spec-new-syntax into master

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.

Merge request reports