James Gray wrote:
> On May 24, 2009, at 6:17 PM, Stephan Wehner wrote:
> 
>>    end
>>      end
>>      assert_match pattern, e.message
>>    ensure
>>      $stderr=save_stderr
>>    end
>>  end
>> end
>>
>> __END__
> 
> Sort of like that, yeah.  Basically what I was saying is that I feel
> an assert_aborts() method tests an implementation detail.
> 
> It doesn't really matter if I use abort() or some output method and
> then call exit() myself.  There may be good reasons to do that too,
> say if you are printing a complex error message and using printf()
> would make it easier to format.
> 
> We really just want to know if the user saw an error and if the
> program is quitting, so it's better to test for that.

Ok, thanks a lot; that makes sense.

Stephan

> James Edward Gray II

-- 
Posted via http://www.ruby-forum.com/.