fix rspec raise_error deprecation