function workFn() {
      var spec = getCurrentSpec();
      if (spec.$injector) {
        throw Error('Injector already created, can not register a module!');
      } else {
        var modules = spec.$modules || (spec.$modules = []);
        angular.forEach(moduleFns, function(module) {
          modules.push(module);
        });
      }
    }
@ngdoc function
@name angular.mock.module
@description

*NOTE*: This is function is also published on window for easy access.<br>
*NOTE*: Only available with {@link http://pivotal.github.com/jasmine/ jasmine}.

This function registers a module configuration code. It collects the configuration information
which will be used when the injector is created by {@link angular.mock.inject inject}.

See {@link angular.mock.inject inject} for usage example

@param {...(string|Function)} fns any number of modules which are represented as string
       aliases or as anonymous module initialization functions. The modules are used to
       configure the injector. The 'ng' and 'ngMock' modules are automatically loaded.