app/templates/skeleton/app/modules/company/list/_tests/company-list-controller.spec.js
describe('The companyListController, ', function () {
var companies = [{id: 6, name: 'john'}, {id: 9, name: 'doe'}];
var $scope;
beforeEach(module('company'));
beforeEach(inject(function(_$rootScope_, _$controller_) {
$scope = _$rootScope_.$new();
_$controller_('companyListController', {$scope: $scope, companies: companies});
}));
it('should add companies to the $scope', function () {
expect($scope.companies).toBe(companies);
});
});