Sha256: 2c62f1347046f9093bd2b45e0a2e81b2db24d6c0135dbf0eb231c6271b086d54

Contents?: true

Size: 950 Bytes

Versions: 15

Compression:

Stored size: 950 Bytes

Contents

describe('Configuration', function() {
  var theConfigProvider, runFn;
  beforeEach(function() {
    angular.module('PraxisDocBrowser').config(function(ConfigurationProvider) {
      theConfigProvider = ConfigurationProvider;
    });
    runFn = angular.module('PraxisDocBrowser')._runBlocks[0];
  });

  beforeEach(angular.mock.module('PraxisDocBrowser'));

  beforeEach(inject(function(Configuration) {
    Configuration;
  }));

  it('sets sensible defaults', function() {
    expect(theConfigProvider).toEqual(jasmine.objectContaining({
      title: 'API Browser',
      versionLabel: 'API Version',
      expandChildren: true
    }));
  });

  it('assigns all things from the provider unto the root scope', inject(function($injector, $rootScope) {
    $injector.invoke(runFn);
    expect($rootScope).toEqual(jasmine.objectContaining({
      title: 'API Browser',
      versionLabel: 'API Version',
      expandChildren: true
    }));
  }));
});

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
praxis-2.0.pre.9 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.8 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.7 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.6 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.5 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.4 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.3 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.2 spec/api_browser/factories/configuration_spec.js
praxis-2.0.pre.1 spec/api_browser/factories/configuration_spec.js
praxis-0.22.pre.2 spec/api_browser/factories/configuration_spec.js
praxis-0.22.pre.1 spec/api_browser/factories/configuration_spec.js
praxis-0.21 spec/api_browser/factories/configuration_spec.js
praxis-0.20.1 spec/api_browser/factories/configuration_spec.js
praxis-0.20.0 spec/api_browser/factories/configuration_spec.js
praxis-0.19.0 spec/api_browser/factories/configuration_spec.js