text: 'use strict';
  
  var Lab = require('lab'),
    Hapi = require('hapi'),
    Plugin = require('../../../lib/plugins/danielfdsilva');
  
  var describe = Lab.experiment;
  var it = Lab.test;
  var expect = Lab.expect;
  var before = Lab.before;
  var after = Lab.after;
  
  describe('danielfdsilva', function() {
    var server = new Hapi.Server();
    it('Plugin successfully loads', function(done) {
      server.pack.register(Plugin, function(err) {
  
        expect(err).to.not.exist;
  
        done();
      });
    });
  
    it('Plugin registers routes', function(done) {
      var table = server.table();
  
      expect(table).to.have.length(1);
      expect(table[0].path).to.equal('/danielfdsilva');
  
      done();
    });
  
    it('Plugin route responses', function(done) {
      var table = server.table();
  
      expect(table).to.have.length(1);
      expect(table[0].path).to.equal('/danielfdsilva');
  
      var request = {
        method: 'GET',
        url: '/danielfdsilva'
      };
  
      server.inject(request, function(res) {
        expect(res.statusCode).to.equal(200);
        expect(res.result).to.equal('don\'t worry, be hapi!');
        done();
      });
  
    });
  });
  