Pending until fixed

Some examples may be temporarily failing but you may not want the entire test suite to fail just for those examples. Instead of commenting them out and then forgetting about those examples when the code is fixed, you can append pendingUntilFixed to the example:

class SpecificationWithPendingExamples extends mutable.Specification {
  "this example fails for now" in {
    1 must_== 2
  }.pendingUntilFixed

  // or, with a more specific message
  "this example fails for now" in {
    1 must_== 2
  }.pendingUntilFixed("ISSUE-123")
}

The example above will be reported as Pending until it succeeds. Then it is marked as a failure so that you can remember to remove the pendingUntilFixed marker.