Correct an rspec deprecation