Address Rails 4 deprecations in spec