diff --git a/platform/entanglement/test/actions/AbstractComposeActionSpec.js b/platform/entanglement/test/actions/AbstractComposeActionSpec.js index 5be0604ec3..07b1b23a5f 100644 --- a/platform/entanglement/test/actions/AbstractComposeActionSpec.js +++ b/platform/entanglement/test/actions/AbstractComposeActionSpec.js @@ -34,6 +34,7 @@ define( describe("Move/copy/link Actions", function () { var action, + policyService, locationService, locationServicePromise, composeService, @@ -44,6 +45,11 @@ define( newParent; beforeEach(function () { + policyService = jasmine.createSpyObj( + 'policyService', + [ 'allow' ] + ); + selectedObjectContextCapability = jasmine.createSpyObj( 'selectedObjectContextCapability', [ @@ -87,6 +93,8 @@ define( ] ); + policyService.allow.andReturn(true); + locationService .getLocationFromUser .andReturn(locationServicePromise); @@ -102,6 +110,7 @@ define( }; action = new AbstractComposeAction( + policyService, locationService, composeService, context, @@ -153,6 +162,7 @@ define( }; action = new AbstractComposeAction( + policyService, locationService, composeService, context, diff --git a/platform/entanglement/test/actions/CopyActionSpec.js b/platform/entanglement/test/actions/CopyActionSpec.js index fc8e615960..2ec1fde5a7 100644 --- a/platform/entanglement/test/actions/CopyActionSpec.js +++ b/platform/entanglement/test/actions/CopyActionSpec.js @@ -34,6 +34,7 @@ define( describe("Copy Action", function () { var copyAction, + policyService, locationService, locationServicePromise, copyService, @@ -50,6 +51,12 @@ define( progress = {phase: "copying", totalObjects: 10, processed: 1}; beforeEach(function () { + policyService = jasmine.createSpyObj( + 'policyService', + [ 'allow' ] + ); + policyService.allow.andReturn(true); + selectedObjectContextCapability = jasmine.createSpyObj( 'selectedObjectContextCapability', [ @@ -142,6 +149,7 @@ define( copyAction = new CopyAction( mockLog, + policyService, locationService, copyService, dialogService, @@ -201,6 +209,7 @@ define( copyAction = new CopyAction( mockLog, + policyService, locationService, copyService, dialogService, diff --git a/platform/entanglement/test/actions/LinkActionSpec.js b/platform/entanglement/test/actions/LinkActionSpec.js index 03967a6672..bf3bd05c6b 100644 --- a/platform/entanglement/test/actions/LinkActionSpec.js +++ b/platform/entanglement/test/actions/LinkActionSpec.js @@ -34,6 +34,7 @@ define( describe("Link Action", function () { var linkAction, + policyService, locationService, locationServicePromise, linkService, @@ -44,6 +45,12 @@ define( newParent; beforeEach(function () { + policyService = jasmine.createSpyObj( + 'policyService', + [ 'allow' ] + ); + policyService.allow.andReturn(true); + selectedObjectContextCapability = jasmine.createSpyObj( 'selectedObjectContextCapability', [ @@ -102,6 +109,7 @@ define( }; linkAction = new LinkAction( + policyService, locationService, linkService, context @@ -152,6 +160,7 @@ define( }; linkAction = new LinkAction( + policyService, locationService, linkService, context diff --git a/platform/entanglement/test/actions/MoveActionSpec.js b/platform/entanglement/test/actions/MoveActionSpec.js index 52a7c6e301..868a3ce84a 100644 --- a/platform/entanglement/test/actions/MoveActionSpec.js +++ b/platform/entanglement/test/actions/MoveActionSpec.js @@ -34,6 +34,7 @@ define( describe("Move Action", function () { var moveAction, + policyService, locationService, locationServicePromise, moveService, @@ -44,6 +45,12 @@ define( newParent; beforeEach(function () { + policyService = jasmine.createSpyObj( + 'policyService', + [ 'allow' ] + ); + policyService.allow.andReturn(true); + selectedObjectContextCapability = jasmine.createSpyObj( 'selectedObjectContextCapability', [ @@ -102,6 +109,7 @@ define( }; moveAction = new MoveAction( + policyService, locationService, moveService, context @@ -152,6 +160,7 @@ define( }; moveAction = new MoveAction( + policyService, locationService, moveService, context