I can't say if the approach you're using is viable or not because I'm
not clear on your intended goal, but if you're trying to get just the
number after SystemExit try:
$variable = $variable.split("SystemExit")[1]
If I knew what test framework you were using, I could probably offer
an easier way
Somehow #{$!.class} prints as: SystemExit1 or SystemExit0, which is
the opposite than what I see on the console in Irb: Exit code: 0,
Error code: 1.
In any case I need only the numbers 1 or 0 without the word
SystemName, any idea?
I wrote a script to send email if the test is failing.
For now I am