fix deprecations in rspec