fix rspec deprecation warning