title: angular test, can't find variable : $scope
body: <p>I did read the angular official tutorial and launch test with success. But I tried to make test for a simple controller (when you click on button a boolean change), i have the following error : ReferenceError: Can't find variable: $scope</p>
  
  <p>controller : </p>
  
  <pre><code>siteLogic = angular.module('siteLogic', []);
  
  siteLogic.controller('siteCtrl', ['$scope',function($scope, initMap) {
    $scope.addingSite=false;
  
    $scope.changeAddingSite = function(){
      $scope.addingSite= !$scope.addingSite;
    };
  }]);
  </code></pre>
  
  <p>file for test :</p>
  
  <pre><code>  describe('$scope initialisation', function() {
  
      beforeEach(module('siteLogic'));
  
      describe('sets the addingSite at the inverse', function() {
        var scope, controller;
  
  
        beforeEach(inject(function($controller, $rootScope) {
          scope = $rootScope.$new(); 
          //it's on the next line I have the error indication
          controller = $controller('siteCtrl', { $scope: scope }); 
        }));
  
        it('sets true if false', function() {
          scope.addingSite = false;
          scope.changeAddingSite();
          expect(scope.addingSite).toEqual(true);
        });
  
        it('sets false if true', function() {
          $scope.addingSite = true;
          $scope.changeAddingSite();
          expect($scope.addingSite).toEqual(false);
        });
      });
    });
  </code></pre>
  
  <p>karma.config.js</p>
  
  <pre><code>module.exports = function(config) {
    config.set({
      basePath: '..',
      frameworks: ['jasmine'],
      files: [
        'test/dep/angular-1.3.15/angular.js',
        'test/dep/angular-1.3.15/angular-resource.js',
        'test/dep/angular-1.3.15/angular-route.js',
        'test/dep/angular-1.3.15/angular-mocks.js',
        'lib/map/public/angular/*.js',
        'test/map/*.js'
      ],
      autoWatch: true,
      browsers: ['PhantomJS']
    });
  };
  </code></pre>