method

assert_fail

ruby latest stable - Class: RUNIT::Assert

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

assert_fail(message="")
public

No documentation available.

# File lib/runit/assert.rb, line 45
    def assert_fail(message="")
      flunk(message)
    end

1Note

Known unknowns

taryneast ยท Apr 16, 2009

In case it isn't obvious - this is what you use when you're fleshing out all the tests that you haven't written yet. eg if you have a set of twenty tests for a complex piece of functionality, and just want to write out the "should" declarations (or equivalent), so you don't forget all the corner cases... then fill out the tests themselves. Putting an assert_fail makes sure you notice if you forget to come back and fill in the body of a test.