Fixed test broken by part sync change (#7195)

This commit is contained in:
Keith Holliday
2016-05-12 12:55:34 -05:00
committed by Matteo Pagliazzi
parent bb1cb3397e
commit ca6dca5fd0
4 changed files with 13 additions and 11 deletions

View File

@@ -5,13 +5,12 @@ describe('Header Controller', function() {
beforeEach(function() {
module(function($provide) {
$provide.value('User', {});
user = specHelper.newUser();
user._id = "unique-user-id"
$provide.value('User', {user: user});
});
inject(function(_$rootScope_, _$controller_, _$location_){
user = specHelper.newUser();
user._id = "unique-user-id"
scope = _$rootScope_.$new();
$rootScope = _$rootScope_;