fix deprecation warnings from rspec-mock