Sha256: 554b6a59650455658f2969c4efb6d0fb302a8fe8674d93599bdf37287a44e4ba

Contents?: true

Size: 1.35 KB

Versions: 8

Compression:

Stored size: 1.35 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"9social_networking/profile/profile-controller_spec.js;FI"
pathname;TI"t/Users/ems408/workspace/social_networking/spec/javascripts/social_networking/profile/profile-controller_spec.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+æ#\TI"length;TiZI"digest;TI"%c685158ba9372e4ee591c25f2fa2b277;FI"source;TI"Zdescribe('ProfileCtrl', function() {
  var controller,
      profileService,
      nudgeService,
      scope,
      q,
      deferred;
  
  beforeEach(function() {
    // load the module with the controller to test
    module('socialNetworking.controllers');

    profileService = {
      getOne: function(profileId) {
                deferred = q.defer();
                return deferred.promise;
              }
    };
    nudgeService = {};
  });

  beforeEach(inject(function($rootScope, $q, $controller) {
    scope = $rootScope;
    q = $q;
    controller = $controller('ProfileCtrl', {
      profileId: 1,
      participantId: 123,
      Profiles: profileService,
      Nudges: nudgeService
    });
  }));

  it('should set the id', function() {
    deferred.resolve({ id: '1' });
    scope.$digest();

    expect(controller.id).toBe('1');
  });

});
;TI"required_assets_digest;TI"%ab3c3c84f45de23dc51204711d5d9c07;FI"
_version;TI"%b910479f035fc02c55a3e167aaa8a0b8;F

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
social_networking-0.11.7 spec/dummy/tmp/cache/assets/development/sprockets/5f967ad3a46be5eb5706164fb8fe17df
social_networking-0.11.7 spec/dummy/tmp/cache/assets/development/sprockets/d308dfe91576d012f9607dd9ce55115f
social_networking-0.11.6 spec/dummy/tmp/cache/assets/development/sprockets/5f967ad3a46be5eb5706164fb8fe17df
social_networking-0.11.6 spec/dummy/tmp/cache/assets/development/sprockets/d308dfe91576d012f9607dd9ce55115f
social_networking-0.11.2 spec/dummy/tmp/cache/assets/development/sprockets/5f967ad3a46be5eb5706164fb8fe17df
social_networking-0.11.2 spec/dummy/tmp/cache/assets/development/sprockets/d308dfe91576d012f9607dd9ce55115f
social_networking-0.11.1 spec/dummy/tmp/cache/assets/development/sprockets/5f967ad3a46be5eb5706164fb8fe17df
social_networking-0.11.1 spec/dummy/tmp/cache/assets/development/sprockets/d308dfe91576d012f9607dd9ce55115f