code: function(name, func) {
        var _case = new Case({
          name: name
        });
        salep.cases.push(_case);
  
        if (salep.isRunning && !skipNextEnabled) {
          caseStart(_case);
          try {
            func();
            _case.success = true;
            success(_case);
          } catch (e) {
            _case.success = false;
            _case.reason = e;
            fail(_case);
          }
        } else {
          _case.skipped = true;
          _case.success = false;
          skipNextEnabled = false;
          skip(_case);
        }
      }
docs: @method case
  @memberof salep
  
  @desc
  This function creates a new case inside salep scope with given name
  and case function. Cases created in salep scope doesn't have parent.
  When case function invoked if exception is thrown case would marked
  as failed otherwise case marked as succeded.
  
  @param {String}    name  Name of the case
  @param {Function}  func  Case function
  
  @fires salep#caseStart
  @fires salep#success
  @fires salep#fail
  @fires salep#skip
  
  @deprecated
  since v0.2.2
  
  @example
  salep.case('NewFailCaseInsalepScope', function() {
  throw "Exception goes here";
  });