Get rid of deprecation warnings from rspec.