fix rspec deprecation warings