code: function workFn() {
        var modules = currentSpec.$modules || [];
  
        modules.unshift('ngMock');
        modules.unshift('ng');
        var injector = currentSpec.$injector;
        if (!injector) {
          injector = currentSpec.$injector = angular.injector(modules);
        }
        for(var i = 0, ii = blockFns.length; i < ii; i++) {
          try {
            /* jshint -W040 *//* Jasmine explicitly provides a `this` object when calling functions */
            injector.invoke(blockFns[i] || angular.noop, this);
            /* jshint +W040 */
          } catch (e) {
            if(e.stack && errorForStack) e.stack +=  '\n' + errorForStack.stack;
            throw e;
          } finally {
            errorForStack = null;
          }
        }
      }
docs: ///////////////////