Skip to content

Commit b22b723

Browse files
committed
to-done
1 parent 2969fc1 commit b22b723

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

coderd/rbac/example_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
// TestExample gives some examples on how to use the authz library.
1313
// This serves to test syntax more than functionality.
1414
func TestExample(t *testing.T) {
15-
t.Skip("TODO: unskip when rego is done")
1615
t.Parallel()
1716
ctx := context.Background()
1817
authorizer, err := rbac.NewAuthorizer()
@@ -28,14 +27,12 @@ func TestExample(t *testing.T) {
2827
},
2928
}
3029

31-
// TODO: Uncomment all assertions when implementation is done.
32-
3330
//nolint:paralleltest
3431
t.Run("ReadAllWorkspaces", func(t *testing.T) {
3532
// To read all workspaces on the site
3633
err := authorizer.Authorize(ctx, user.UserID, user.Roles, rbac.ResourceWorkspace.All(), rbac.ActionRead)
3734
var _ = err
38-
// require.Error(t, err, "this user cannot read all workspaces")
35+
require.Error(t, err, "this user cannot read all workspaces")
3936
})
4037

4138
//nolint:paralleltest

0 commit comments

Comments
 (0)