Fix raise_error deprecation warning
Merge pull request #349 from Element84/SpecDeprecationWarning

Deprecation warning when running rake:spec