"use strict";

describe('configurator', function() {
  beforeEach(function() {
    return module('arethusa');
  });

  describe('this.configurationFor', function() {
    it('provides the configuration for a given plugin', inject(function(configurator) {
      // the configuration is usually provide from an external route
      configurator.configuration = { "text" : 'conf' };
      expect(configurator.configurationFor('text')).toEqual('conf');
    }));
  });
});

@@ -52,67 +52,164 @@
 %7B%0A  
-beforeEach(function() %7B%0A    return module('arethusa'
+var mock1 = %7B%7D;%0A  var mock2 = %7B%7D;%0A  beforeEach(module('arethusa', function($provide) %7B%0A    $provide.value('x', mock1);%0A    $provide.value('y', mock2
 );%0A  %7D)
+)
 ;%0A%0A 
@@ -469,16 +469,16 @@
 onf' %7D;%0A
-
       ex
@@ -552,13 +552,568 @@
 );%0A  %7D);
+%0A%0A  describe('this.getService', function() %7B%0A    it('retrieves an angular instance by name', inject(function(configurator) %7B%0A      expect(configurator.getService('x')).toEqual(mock1);%0A    %7D));%0A  %7D);%0A%0A  describe('this.getServices', function() %7B%0A    it('retrieves an array of angular instance by name', inject(function(configurator) %7B%0A      var names = %5B'x', 'y'%5D;%0A      var services = configurator.getServices(names);%0A      expect(services.length).toEqual(2);%0A      expect(services).toContain(mock1);%0A      expect(services).toContain(mock2);%0A    %7D));%0A  %7D);
 %0A%7D);%0A

Add configurator specs