fix rspec deprecation warnings