Fix rspec deprecations.