Sha256: 542cf35e1dc91d4f9eba791f9a8f8064dfc28b9060960508833d54d6b7cc3678

Contents?: true

Size: 595 Bytes

Versions: 5

Compression:

Stored size: 595 Bytes

Contents

describe('ListKeysController', function(){
  describe('keys', function(){
    var scope;

    // mocking keys resource to return []
    var keysResource = {
      get: function(){
        return [];
      }
    }

    beforeEach(module('memcached-keys'));

    beforeEach(inject(function($rootScope, $controller){
      scope = $rootScope.$new();
      ctrl = $controller('ListKeysController', {
        $scope: scope,
        Keys: keysResource
      });
    }));

    it('sets up the keys attribute with Keys resource call', function(){
      expect(scope.keys).toEqual([]);
    });
  });
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
memcached-manager-0.2.1 spec/javascripts/angular/controllers/list_keys_controller_spec.js
memcached-manager-0.2.0 spec/javascripts/angular/controllers/list_keys_controller_spec.js
memcached-manager-0.1.0 spec/javascripts/angular/controllers/list_keys_controller_spec.js
memcached-manager-0.0.1 spec/javascripts/angular/controllers/list_keys_controller_spec.js
memcached-manager-0.0.0 spec/javascripts/angular/controllers/list_keys_controller_spec.js