It turns out to be an upstream problem with rspec-mocks: https://github.com/rspec/rspec-mocks/pull/1514 Submitting a new version, to d:l:r:e https://build.opensuse.org/request/show/1057124