Commit f728b53f99087917101a0072b13e012149e11794
1 parent
ef70601cce
Exists in
master
linea al final
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/routeSpec.js
1 | describe('Rutas de módulo crear hoja de ruta', function() { | 1 | describe('Rutas de módulo crear hoja de ruta', function() { |
2 | 2 | ||
3 | var route; | 3 | var route; |
4 | 4 | ||
5 | beforeEach(function() { | 5 | beforeEach(function() { |
6 | module('focaCrearHojaRuta'); | 6 | module('focaCrearHojaRuta'); |
7 | inject(function($route) { | 7 | inject(function($route) { |
8 | route = $route; | 8 | route = $route; |
9 | }); | 9 | }); |
10 | }); | 10 | }); |
11 | 11 | ||
12 | it('La ruta /venta-hoja-ruta/crear dirige correctamente', function() { | 12 | it('La ruta /venta-hoja-ruta/crear dirige correctamente', function() { |
13 | 13 | ||
14 | //assert | 14 | //assert |
15 | expect(route.routes['/venta-hoja-ruta/crear'].controller) | 15 | expect(route.routes['/venta-hoja-ruta/crear'].controller) |
16 | .toBe('hojaRutaCtrl'); | 16 | .toBe('hojaRutaCtrl'); |
17 | expect(route.routes['/venta-hoja-ruta/crear'].templateUrl) | 17 | expect(route.routes['/venta-hoja-ruta/crear'].templateUrl) |
18 | .toBe('src/views/hoja-ruta.html'); | 18 | .toBe('src/views/hoja-ruta.html'); |
19 | }); | 19 | }); |
20 | }); | ||
20 | }); |