Adjust some specs to Ruby 2.7
What does this MR do?
We can push these changes to master to move them out of !38633 (closed) since they are backward compatible
We can push these changes to master to move them out of !38633 (closed) since they are backward compatible