describe('Ionic nav-view', function() {
  beforeEach(module('ionic'));

  var compile, scope;
  beforeEach(inject(function($compile, $rootScope) {
    compile = $compile;
    scope = $rootScope.$new();
  }));

  it('should publish a controller', function() {
    var view = angular.element('<ion-nav-view></ion-nav-view>');
    compile(view)(scope);
    scope.$apply();

    expect(view.controller('ionNavView')).toBeTruthy();
  });

  /*
   * TODO adapt the tests from uiRouter
   */
});
