title: angular mock `module` resulting in '[Object object] is not a function'
body: <p>I'm trying to create some unit tests in Angular using Jasmine being run through Teaspoon. The tests are running, however I have a simple test just to test the existence of a controller that is failing. I have the following test setup.</p>
  
  <pre><code>//= require spec_helper
  
  require("angular");
  require("angular-mocks");
  var app = require("./app");
  
  
  describe("My App", function() {
  
    describe("App Controllers", function() {
  
      beforeEach(module("app"))
  
      it("Should have created an application controller", inject(function($rootScope, $controller){
        var scope = $rootScope.$new();
        ctrl = $controller("ApplicationCtrl", { $scope: scope });
      }));
  
    })
  
  })
  </code></pre>
  
  <p>The require statements are processed by Browserify which is handling my dependencies, but I can also hook into sprockets which I'm using for the spec helper.</p>
  
  <p>Inside the app that is being required, I have</p>
  
  <pre><code>require("angular");
  var controllers = require("./controllers");
  
  var app = angular.module("app", [
    "app.controllers"
  ]);
  
  exports.app = app;
  </code></pre>
  
  <p>When I run this test, I get the following error produced</p>
  
  <pre><code>Failure/Error: TypeError: '[object Object]' is not a function (evaluating 'module("aialerts")')
  </code></pre>
  
  <p>I've spent quite a while trying to figure this out but I have no idea what's going on. Any help appreciated.</p>