Fix random spec using seed 29363.

Detected in https://travis-ci.org/rollbar/rollbar-gem/jobs/40320556.
Merge pull request #167 from rollbar/remove-deprecated-methods

Fix random spec using seed 29363.