text: var fs = require('fs');
  var path = require('path');
  var sinon = require('sinon');
  var $ = require('jquery');
  
  var $body = $(document.body);
  
  var setFixtures = function () {
    _.each(arguments, function (content) {
      $body.append(content);
    });
  };
  
  var clearFixtures = function () {
    $body.empty();
  };
  
  beforeEach(function () {
    this.sinon = sinon.sandbox.create();
    this.setFixtures   = setFixtures;
    this.clearFixtures = clearFixtures;
  });
  
  afterEach(function () {
    this.sinon.restore();
    window.location.hash = '';
    Backbone.history.stop();
    Backbone.history.handlers.length = 0;
    clearFixtures();
  });
  