title: Error: Argument 'MainCtrl' is not a function, got undefined
body: <p>I've just installed Yeoman and created my first project. I'm trying to get my head around unit testing the default angular project that is created by Yo. The project runs fine when I invoke "grunt server", but when I run the unit test "grunt test:unit" I get the error "Argument 'MainCtrl' is not a function, got undefined".</p>
  
  <p>What am i missing to get this test running properly?</p>
  
  <p>Thanks again</p>
  
  <p>-- controller</p>
  
  <pre><code>'use strict';
  
  angular.module('myApp')
  .controller('MainCtrl', function ($scope) {
  $scope.awesomeThings = [
  'HTML5 Boilerplate',
  'AngularJS',
  'Karma',
  'mytest'
    ];
  });
  </code></pre>
  
  <p>-- unti test</p>
  
  <pre><code> 'use strict';
  
   describe('Controller: MainCtrl', function () {
  
   // load the controller's module
   beforeEach(module('myApp'));
  
  var MainCtrl,
   scope;
  
    // Initialize the controller and a mock scope
   beforeEach(inject(function ($controller, $rootScope) {
    scope = $rootScope.$new();
   MainCtrl = $controller('MainCtrl', {
   $scope: scope
  });
  }));
  
  it('should attach a list of awesomeThings to the scope', function () {
  expect(scope.awesomeThings.length).toBe(4);
  });
  });
  </code></pre>