resolve deprecation warnings from rspec3