'use strict' #jasmine specs for controllers go here describe 'PhoneCat controllers', -> describe 'PhoneListCtrl', -> beforeEach module 'phonesCat.controllers' ctrl = undefined scope = undefined beforeEach inject ($controller, $rootScope) -> scope = $rootScope.$new(); ctrl = $controller 'PhoneListCtrl', { $scope: scope } it 'should create "phones" model with 3 phones', -> expect(scope.phones.length).toBe 3