 
   beforeEach module("Events")
 
-  beforeEach inject($injector) ->
+  beforeEach inject ($injector) ->
     $scope = $injector.get('$rootScope').$new()
     $controller = $injector.get('$controller')
     $httpBackend = $injector.get("$httpBackend")

describe "EventsCtrl", ->
  $fixture = [
    { id: 1, title : "test", description : "test"}
  ]

  $scope = null

    $controller(EventsCtrl, {$scope : $scope })
    expect($scope.events).toBeUndefined()
    $httpBackend.flush()
    expect($scope.events.length).toBe(2)
    expect($scope.events).toEqual $fixture
