[Composition] Update specs

Update specs to reflect usage of the add method in
the composition capability.
This commit is contained in:
Victor Woeltjen
2015-09-02 09:37:26 -07:00
parent d3d94d67ea
commit 8759fdbd95
5 changed files with 75 additions and 68 deletions

View File

@@ -45,7 +45,7 @@ define(
if (parentCandidate.getId() === object.getId()) {
return false;
}
if (parentCandidate.getModel().composition.indexOf(object.getId()) !== -1) {
if ((parentCandidate.getModel().composition || []).indexOf(object.getId()) !== -1) {
return false;
}
return this.policyService.allow(