From: Rob Sanheim Date: 2006-08-06T05:16:29+09:00 Subject: Re: why can't I catch this exception? On 8/5/06, John Wilger wrote: > On 8/5/06, Rob Sanheim wrote: > > I realize assert_raises _should_ rescue it, but then it should either > > pass or fail based on the class of the exception. My main issue is > > that the program just exits, with out success or failure for that test > > class. So its basically as if it was calling exit (which its not). > > Ah, OK. I misunderstood and simply thought that you had a test that > was passing when you expected it to fail. > > I tried out your example on my OSX system (ruby 1.8.4, compiled form > src). I had the same result both with the latest release of Rails and > after freezing to edge Rails. Not much help, I know -- but it's not > just you, FWIW. Thanks for confirming that I'm not going crazy =). I understand that it should error out for a bad file (which I'm going to submit a patch for), but I don't understand what kind of error would cause it to just crash like that w/o a "rescuable" exception. - rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.com