[Entanglement] Move policyService.allow.andReturn

...to locations where the specified return value
can be more closely correlated to the relevant
test cases. nasa/openmctweb#98
This commit is contained in:
Victor Woeltjen
2015-09-23 12:46:23 -07:00
parent 6dbccd5000
commit 082122ddec

View File

@@ -48,7 +48,6 @@ define(
'policyService', 'policyService',
['allow'] ['allow']
); );
policyService.allow.andReturn(true);
}); });
describe("validate", function () { describe("validate", function () {
@@ -138,6 +137,7 @@ define(
); );
createObjectPromise = synchronousPromise(undefined); createObjectPromise = synchronousPromise(undefined);
creationService.createObject.andReturn(createObjectPromise); creationService.createObject.andReturn(createObjectPromise);
policyService.allow.andReturn(true);
}); });
describe("on domain object without composition", function () { describe("on domain object without composition", function () {
@@ -243,7 +243,6 @@ define(
composition: [] composition: []
} }
}); });
policyService.allow.andReturn(true);
createObjectPromise = synchronousPromise(newObject); createObjectPromise = synchronousPromise(newObject);
creationService.createObject.andReturn(createObjectPromise); creationService.createObject.andReturn(createObjectPromise);