method

assert_fail

v1_8_6_287 - Show latest stable - Class: RUNIT::Assert
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.