Fix rspec deprecation.