title: how to test controllers created with angular.module().controller() in Angular.js using Mocha
body: <p>I have a controller created with angular.module().controller() like in this situation</p>
  
  <pre><code>myModule = angular.module('myApp.controllers', [])
                     .controller('testCtrl', ['$scope', function($scope){
                             $scope.test = 'this is a test';
                      }]);
  </code></pre>
  
  <p>now, I need to use mocha to test if my controller is working properly. In Angular there are some examples when controllers are declared as global functions ( ex. <a href="http://docs.angularjs.org/tutorial/step_04">http://docs.angularjs.org/tutorial/step_04</a> ), so they use </p>
  
  <pre><code>function PhoneListCtrl() {...}
  .....
  beforeEach(function() {
     scope = {},
     ctrl = new PhoneListCtrl(scope);
  });
  
  it('shod test whatever PhoneListCtrl does ', function() {
     expect(scope.someProp).toBe('whateverValue');
  });    
  </code></pre>
  
  <p>so the questions are:</p>
  
  <p>1) how can I do a similar test for controllers that are declared using angular.module().controller()</p>
  
  <p>2) how to do it using Mocha</p>