Fix rspec deprecation warning