text: var assert = require('chai').assert;
  var sequelize = require('../sequelizeConfigured');
  var User = require('../models/user')(sequelize);
  var Travel = require('../models/travel')(sequelize);
  var createTravels = require('./createTravels')(User, Travel);
  var RouteCalculatorSystem = require('../controllers/route-calculator-system.js');
  var routeCalculatorSystem = new RouteCalculatorSystem(sequelize);
  
  var oldTravel = {
  	id: 1,
  	userid: 3,
  	origin: 'Belgrano 280, Bernal, Buenos Aires, Argentina',
  	destination: 'Belgrano 380, Bernal, Buenos Aires, Argentina',
  	seats: 4,
  	arrivalDateTime: "2016-10-21 14:05:06",
  	observations: "Paseo por Bernal."
  };
  
  var students;
  var studyTravels;
  var travel;
  var waitedRoute;
  
  describe('Calculating route from origin to destination', function(done) {
  	before(function(done) {
  		createTravels(function(users, travels) {
  			students = users;
  			studyTravels = travels;
  			travel = travels[0];
  			waitedRoute = {
  				travelid: travel.id,
  				origin: travel.origin,
  				destination: travel.destination,
  				polyline: {
  					type: 'LineString',
  					coordinates: [
  						[-34.71256, -58.2798],
  						[-34.71204, -58.28095],
  						[-34.71165, -58.2818],
  					]
  				},
  				distance: 209,
  				duration: '1 min',
  				summary: 'Belgrano'
  			};
  			done();
  		});
  	});
  	it('Should return a route', function() {
  		routeCalculatorSystem.calculateForTravel(travel, function(calculatedRoutes) {
  			assert.equal(waitedRoute.travelid, calculatedRoutes[0].travelid);
  			assert.equal(waitedRoute.origin, calculatedRoutes[0].origin);
  			assert.equal(waitedRoute.destination, calculatedRoutes[0].destination);
  			assert.deepEqual(waitedRoute.polyline.coordinates, calculatedRoutes[0].polyline.coordinates);
  			assert.equal(waitedRoute.polyline.coordinates[0][0], calculatedRoutes[0].polyline.coordinates[0][0]);
  			assert.equal(waitedRoute.distance, calculatedRoutes[0].distance);
  			assert.equal(waitedRoute.duration, calculatedRoutes[0].duration);
  			assert.equal(waitedRoute.summary, calculatedRoutes[0].summary);
  			done();
  		});
  	});
  	it('Should exist one route.', function(endingFunction) {
  		routeCalculatorSystem.countAll(function(result) {
  			console.log(result);
  			assert.equal(1, result);
  			endingFunction();
  		});
  	});
  	after(function(done) {
  		Travel.destroy({
  			truncate: true
  		});
  		User.destroy({
  			truncate: false,
  			where: {
  				sex: 'Femenino'
  			}
  		});
  		routeCalculatorSystem.destroy(done);
  	});
  });