From: Michal Date: 2004-12-29T18:35:24+09:00 Subject: Re: unit testing of methods which do Kernel#exit Hi, > Apart from that I would not write tests that do exit the system. > Usually tests fail with an exception - that should be enough. my tests use just assert_* ... but the tested code sometimes exits using Kernel#exit [well, now I raise SystemExit]. I have to add that after Nobu's remark I also tried to assert_raises(SystemExit) while using Kernel#exit and it also works well. The thing is that now I find "raise SystemExit" more adequate[*]. Regards, Michal Ref: [*]: eh, is this the correct word to convey following in English: "I like it better and the code seems more 'clear' to me when using raise"? -- # Michal Safranek, email: a=(("a".."z").to_a+["@","."]);p(("%b"%[0x645bbb83a6a496] ).scan(/...../).map{|x|a[Integer("0b"+x)]}.join.reverse)