Fix tests broken in #16149

https://github.com/rails/rails/pull/16149 was merged a bit prematurely, before the tests I added had a chance to finished running on the CI server. I’ve fixed a small typo in the tests, so they should now pass.