vendor/gems/assert2-0.5.5/lib/assert2.rb
#  The new <code>assert()</code> calls this to interpret
#  blocks of assertive statements.
#

The new assert() calls this to interpret
blocks of assertive statements.
The new assert () calls this to interpret blocks of assertive statements .
def assert_(diagnostic = nil, options = {}, &block)
    options[:keep_diagnostics] or add_diagnostic :clear
    begin
      if got = block.call(*options[:args])
        add_assertion
        return got
      end
    rescue FlunkError
      raise  
    rescue => got
      add_exception got
    end
    flunk diagnose(diagnostic, got, caller[1], options, block)
  end
def assert_ ( diagnostic = nil , options = { } , & block ) options [ :keep_diagnostics ] or add_diagnostic :clear begin if got = block . call ( * options [ :args ] ) add_assertion return got end rescue FlunkError raise rescue => got add_exception got end flunk diagnose ( diagnostic , got , caller [ 1 ] , options , block ) end
The new <code>assert()</code> calls this to interpret
blocks of assertive statements.
The new <code > assert () < / code > calls this to interpret blocks of assertive statements .
#  asserts inside assertions that fail do not decorate the outer assertion

diagnostic
<not_specific>
options
<not_specific>
block
<not_specific>