[Policy] Implement view decorator

Implement policy-driven view decorator, sufficient to satisfy
specs. WTD-1062.
This commit is contained in:
Victor Woeltjen
2015-04-01 15:58:19 -07:00
parent 7915074b10
commit 892e2c9dd4
4 changed files with 45 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ define(
it("provides views from its decorated view service", function () {
// Mock policy service allows everything by default,
// so everything should be returned
expect(decorator.getActions(mockDomainObject))
expect(decorator.getViews(mockDomainObject))
.toEqual(testViews);
});