global

def failed_or_pending?

@returns [Boolean] true if failed or pending; false otherwise

Determines if the any specs failed or are in pending state
def failed_or_pending?
  (@failure_count.to_i > 0 || @pending_count.to_i > 0)
end