I have a method that will sometimes call exit(numeric_value)
.
Is it possible for rspec to validate that when the method is invoked, the process is exiting with the correct value?
I have seen these other posts, but they do not answer this specific question.