From: Michal Date: 2004-12-29T07:56:16+09:00 Subject: unit testing of methods which do Kernel#exit Hi, I ran into a problem -- how to unit test methods that have Kernel#exit call in case of troubles (fatal errors). I found solution (imho) better than changing behaviour of Kernel.exit -- I simply raise SystemExit, exitcode ... But because I'm not sure about correctness of this "replacement", I'd like to ask more experienced people here whether I miss something in the "big picture" or there really are no hidden monsters that will bite me after some time of doing this. If you have any comment, I'd appreciate it :-) Regards, M.S. -- # Michal Safranek, email: a=(("a".."z").to_a+["@","."]);p(("%b"%[0x645bbb83a6a496] ).scan(/...../).map{|x|a[Integer("0b"+x)]}.join.reverse)