Fix rspec deprecation