Fix broken rspec.

Fixes #5466