title: Mock issue with AngularJS and Jasmine
body: <p>Tryin' to get started with testing in angularjs (based on <a href="http://jsfiddle.net/brendanowen/5Afbm/1/" rel="nofollow">this</a>) but can't seem to get the mocks working correctly. Here's my jasmine file:</p>
  
  <pre><code>describe 'FlightsController', -&gt;
    beforeEach module 'surf-air'
  
    beforeEach inject ($rootScope, $controller) -&gt;
      scope = $rootScope.$new()
      FlightsController = $controller('FlightsController', {scope: scope})
  
    it 'should work', -&gt; expect(true).toBe(true)
  </code></pre>
  
  <p>And here's what Testacular spits back:</p>
  
  <pre><code>Chrome 23.0 FlightsController should work FAILED
      Error: Unknown provider: $scopeProvider &lt;- $scope
          at Error (&lt;anonymous&gt;)
          at /Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:28:395
          at Object.c [as get] (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:26:180)
          at /Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:28:476
          at c (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:26:180)
          at d (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:26:314)
          at Object.instantiate (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:27:455)
          at /Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:50:239
          at null.&lt;anonymous&gt; (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/test/unit/controllers.js:9:34)
          at Object.d [as invoke] (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/src/js/angular.min.js:27:325)
      Error: Declaration Location
          at window.jasmine.window.inject.angular.mock.inject (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/test/lib/js/angular-mocks.js:1717:25)
          at null.&lt;anonymous&gt; (/Users/chriskun/forge-workspace/surf-air-pilot-mobile/test/unit/controllers.js:6:16)
          at /Users/chriskun/forge-workspace/surf-air-pilot-mobile/test/unit/controllers.js:4:3
          at /Users/chriskun/forge-workspace/surf-air-pilot-mobile/test/unit/controllers.js:18:4
  Chrome 23.0: Executed 1 of 1 (1 FAILED) (0.221 secs / 0.04 secs)
  </code></pre>
  
  <p>which is caused by:</p>
  
  <pre><code>$controller('FlightsController', {scope: scope})
  </code></pre>
  
  <p>Any ideas?</p>