'use strict';

describe('Routing', function () {
  var $route;
  beforeEach(module('bolt'));

  beforeEach(inject(function ($injector) {
    $route = $injector.get('$route');
  }));

  it('Should have /signup route, template, and controller', function () {
    expect($route.routes['/signup']).to.be.defined;
    expect($route.routes['/signup'].controller).to.equal('AuthController');
    expect($route.routes['/signup'].templateUrl).to.equal('app/auth/signup.html');
  });

  it('Should have /signin route, template, and controller', function () {
    expect($route.routes['/signin']).to.be.defined;
    expect($route.routes['/signin'].controller).to.equal('AuthController');
    expect($route.routes['/signin'].templateUrl).to.equal('app/auth/signin.html');
  });

  it('Should have /bolt route, template, and controller', function () {
    expect($route.routes['/']).to.be.defined;
    expect($route.routes['/'].controller).to.equal('BoltController');
    expect($route.routes['/'].templateUrl).to.equal('app/views/bolt.html');
  });

  it('Should have /finish route, template, and controller', function () {
    expect($route.routes['/finish']).to.be.defined;
    expect($route.routes['/finish'].controller).to.equal('FinishController');
    expect($route.routes['/finish'].templateUrl).to.equal('app/views/finish.html');
  });
});
//
// .when('/achievements', {
//   templateUrl: 'app/views/achievements.html',
//   controller: 'AchievementsController',
//   authenticate: true
// })
// .when('/multiLoad', {
//   templateUrl: 'app/views/multiLoad.html',
//   controller: 'MultiController',
//   authenticate: true
// })
// .when('/signin', {
//   templateUrl: 'app/auth/signin.html',
//   controller: 'AuthController'
// })
// .when('/signup', {
//   templateUrl: 'app/auth/signup.html',
//   controller: 'AuthController'
// })
// .when('/profile', {
//   templateUrl: 'app/profile/profile.html',
//   controller: 'ProfileController',
//   authenticate: true
// })
// .when('/createProfile', {
//   templateUrl: 'app/views/createProfile.html',
//   controller: 'CreateProfileController',
//   authenticate: true
// })

@@ -1329,519 +1329,846 @@
 %7D);%0A
-%7D);%0A//%0A// .when('/achievements', %7B%0A//   templateUrl: 'app/views/achievements.html',%0A//   controller: 'AchievementsController',%0A//   authenticate: true%0A// %7D)%0A// .when('/multiLoad', %7B%0A//   templateUrl: 'app/views/multiLoad.html',%0A//   controller: 'MultiController',%0A//   authenticate: true%0A// %7D)%0A// .when('/signin', %7B%0A//   templateUrl: 'app/auth/signin.html',%0A//   controller: 'AuthController'%0A// %7D)%0A// .when('/signup', %7B%0A//   templateUrl: 'app/auth/signup.html',%0A//   controller: 'AuthController'%0A// %7D)%0A// .when(
+%0A  it('Should have /finish route, template, and controller', function () %7B%0A    expect($route.routes%5B'/finish'%5D).to.be.defined;%0A    expect($route.routes%5B'/finish'%5D.controller).to.equal('FinishController');%0A    expect($route.routes%5B'/finish'%5D.templateUrl).to.equal('app/views/finish.html');%0A  %7D);%0A%0A  it('Should have /multiLoad route, template, and controller', function () %7B%0A    expect($route.routes%5B'/multiLoad'%5D).to.be.defined;%0A    expect($route.routes%5B'/multiLoad'%5D.controller).to.equal('MultiController');%0A    expect($route.routes%5B'/multiLoad'%5D.templateUrl).to.equal('app/views/multiLoad.html');%0A  %7D);%0A%0A  it('Should have /profile route, template, and controller', function () %7B%0A    expect($route.routes%5B'/profile'%5D).to.be.defined;%0A    expect($route.routes%5B'/profile'%5D.controller).to.equal('ProfileController');%0A    expect($route.routes%5B
 '/pr
@@ -2169,33 +2169,26 @@
 s%5B'/profile'
-, %7B%0A//   
+%5D.
 templateUrl:
@@ -2190,255 +2190,390 @@
 eUrl
-: 'app/profile/profile.html',%0A//   controller: 'ProfileController',%0A//   authenticate: true%0A// %7D)%0A// .when('/createProfile', %7B%0A//   templateUrl: 'app/views/createProfile.html',%0A//   controller: 'CreateProfileController',%0A//   authenticate: true%0A// %7D)
+).to.equal('app/views/profile.html');%0A  %7D);%0A%0A  it('Should have /createProfile route, template, and controller', function () %7B%0A    expect($route.routes%5B'/createProfile'%5D).to.be.defined;%0A    expect($route.routes%5B'/createProfile'%5D.controller).to.equal('CreateProfileController');%0A    expect($route.routes%5B'/createProfile'%5D.templateUrl).to.equal('app/views/createProfile.html');%0A  %7D);%0A%0A%7D);
 %0A

Add all routes to spec