Skip to content
Commits on May 13, 2012
  1. @yourcelf
  2. @yourcelf

    Add explicit failure through `expect().fail()`

    yourcelf committed
    Sometimes, you just need to signal failure, and the logic doesn't make
    sense to encapsulate within `` type chaining.  This commit
    adds an explicit `fail()` assertion which forces failure.  Since there's
    no context to expect() with which to construct an 'expected ... to be
    ...` type failure message, also let a message be specified with an
    optional first argument: `fail("custom message")`.
Something went wrong with that request. Please try again.