Fix deprecation warnings for rspec

Encountered with a fresh `bundle` and `rake spec` (rspec v2.99.2).