Fixes rspec deprecations

This is still a WIP. I set `config.raise_errors_for_deprecations!` to get more info about the reason for each deprecation warning.