Fix deprecation warnings for rspec

rspec v2.99.2