Capture exit status of rspec and pass it to Ruby