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