old_contents: describe('Primacron', function () {
    'use strict';
  
    var Primacron = require('../')
      , portnumbers = 1024
      , server
      , reds;
  
    beforeEach(function beforeEach(done) {
      server = new Primacron({
        port: ++portnumbers,
        listening: done
      });
    });
  
    afterEach(function afterEach(done) {
      server.destroy(done);
    });
  });
  
new_contents: describe('Primacron', function () {
    'use strict';
  
    var Primacron = require('../')
      , assume = require('assume')
      , portnumbers = 1024
      , server
      , reds;
  
    beforeEach(function beforeEach(done) {
      server = new Primacron({
        port: ++portnumbers,
        listening: done
      });
    });
  
    afterEach(function afterEach(done) {
      server.destroy(done);
    });
  
    describe("#listen", function () {
      it('should register a listening event on the consumed server that re-emits', function (done) {
         var prima = new Primacron({
          listen: false,
          port: ++portnumbers
        });
  
        prima.once('listening', function () {
          prima.destroy();
          done();
        });
  
        prima.listen();
        assume(prima.server._events).to.have.property('listening');
        assume(prima.server._events.listening).to.be.an('array');
        prima.server._events.listening.forEach(function (fn) {
          assume(fn).to.be.a('function');
        });
      });
  
      it('should register a close event on the consumed server that re-emits', function (done) {
        var prima = new Primacron({
          listen: false,
          port: ++portnumbers
        });
  
        prima.once('close', done);
        prima.once('listening', function () {
          prima.destroy();
        });
  
        prima.listen();
        assume(prima.server._events).to.have.property('close');
        assume(prima.server._events.close).to.be.an('array');
        prima.server._events.close.forEach(function (fn) {
          assume(fn).to.be.a('function');
        });
      });
    });
  });
  
subject: check for presence of proxying events