text: /* jshint -W117, -W030 */
  describe('HomeController', function() {
      var controller;
      var people = mockData.getMockPeople();
  
      beforeEach(function() {
          bard.appModule('app.home');
          bard.inject('$controller', '$log', '$q', '$rootScope', 'dataservice');
      });
  
      beforeEach(function () {
          sinon.stub(dataservice, 'getPeople').returns($q.when(people));
          controller = $controller('HomeController');
          $rootScope.$apply();
      });
  
      bard.verifyNoOutstandingHttpRequests();
  
      describe('Home controller', function() {
          it('should be created successfully', function () {
              expect(controller).to.be.defined;
          });
  
          describe('after activate', function() {
              it('should have title of Home', function () {
                  expect(controller.title).to.equal('Home');
              });
  
              it('should have logged "Activated"', function() {
                  expect($log.info.logs).to.match(/Activated/);
              });
  
              it('should have news', function () {
                  expect(controller.news).to.not.be.empty;
              });
  
              it('should have at least 1 person', function () {
                  expect(controller.people).to.have.length.above(0);
              });
  
              it('should have people count of 5', function () {
                  expect(controller.people).to.have.length(7);
              });
          });
      });
  });
  