Using newUser helper in tests

This commit is contained in:
Dušan Juretić
2014-01-18 20:38:47 -03:00
parent bca13b5557
commit efdd85fe2e
3 changed files with 6 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ describe('Filters Controller', function() {
beforeEach(module('habitrpg'));
beforeEach(inject(function($rootScope, $controller, Shared) {
user = {filters: {}};
user = specHelper.newUser();
Shared.wrap(user);
scope = $rootScope.$new();
$controller('FiltersCtrl', {$scope: scope, User: {user: user}});