Volkmann, Mark wrote:
> Yes, I'm aware of RubyUnit.  I love it and use it extensively!  However,
> I think there is a place for assertions too.  Assertions provide useful
> documentation inside the code as opposed to be being in a separate file
> as I believe most unit tests are implemented.  My examples demonstrated
> another potential use of assertions which is to provide a weak form of
> type checking ... which of course has been a controversial issue on the
> mailing list in the past few weeks.

http://www.pragmaticprogrammer.com/ruby/downloads/dbc.html

It's an implementation of Design By Contract for Ruby put together (I
believe) by Andy Hunt.  And although it should be viewed mostly as a
prototype, it is directly usable and may inspire you to grow it into
something greater.

-- 
Jason Voegele
"We believe that we invent symbols. The truth is that they invent us."
    -- Gene Wolfe, The Book of the New Sun