fix deprecations for rspec 2.99.x