Fixing Ruby tests.

[#53967295]
[#52019105]