|
|
|
@ -30,9 +30,9 @@ |
|
|
|
|
|
|
|
|
|
describe('AuthorisationService', function() { |
|
|
|
|
|
|
|
|
|
var AuthorisationService, query, queryData; |
|
|
|
|
var AuthorisationService, query; |
|
|
|
|
|
|
|
|
|
beforeEach(module('openproject.services', 'openproject.models')); |
|
|
|
|
beforeEach(angular.mock.module('openproject.services', 'openproject.models')); |
|
|
|
|
|
|
|
|
|
beforeEach(inject(function(_AuthorisationService_){ |
|
|
|
|
AuthorisationService = _AuthorisationService_; |
|
|
|
@ -52,7 +52,5 @@ describe('AuthorisationService', function() { |
|
|
|
|
it('should not allow action', function() { |
|
|
|
|
expect(AuthorisationService.can('query', 'delete')).to.be.false; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |