Turning depreciation warnings into errors

It's for RSpec, so that I can remove them completely