update specs to remove deprecation warnings
Merge pull request #2954 from mcwumbly/rspec-deprecations

update specs to remove deprecation warnings