describe('Rutas del módulo crear nota de pedido', function() { var route; beforeEach(function() { module('focaCrearNotaPedido'); inject(function($route) { route = $route; }); }); it('la ruta /venta-nota-pedido/crear dirige correctamente', function() { //expect expect(route.routes['/venta-nota-pedido/crear'].controller) .toBe('notaPedidoCtrl'); expect(route.routes['/venta-nota-pedido/crear'].templateUrl) .toBe('src/views/nota-pedido.html'); }); });