text: /* jshint -W117, -W030 */
  describe('PermitsController', function() {
      var controller;
  
      beforeEach(function() {
          bard.appModule('app.permits');
          bard.inject('$controller', '$log', '$rootScope');
      });
  
      beforeEach(function () {
          controller = $controller('PermitsController');
          $rootScope.$apply();
      });
  
      bard.verifyNoOutstandingHttpRequests();
  
      describe('Permits controller', function() {
          it('should be created successfully', function () {
              expect(controller).to.be.defined;
          });
  
          describe('after activate', function() {
              it('should have title of Permits', function() {
                  expect(controller.title).to.equal('Permits');
              });
  
              it('should have logged "Activated"', function() {
                  expect($log.info.logs).to.match(/Activated/);
              });
          });
      });
  });
  