fix(test): align P3 gold with quiet-admin gate semantics

b752cd4 stopped auto-gating admin_prefix when admin=false but did not
update the P3 gold, which still expected the removed /admin auto gate
(ng >= 2). Assert the new intent instead: exactly one explicit gate
registered with the declared path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-22 15:20:48 +08:00
1 parent 86b183e2d7
commit f3051fb536
1 file changed
+2 -1
+2 -1
View File
@@ -90,7 +90,8 @@ import json:lib/json.mq.md
**app = > `app`.gate path="/write*" roles="admin,author"**
**gates = [gates](app)**
**ng = > len value=`gates`**
1. `ng` >= 2
**gpath = [path]([1](gates))**
1. `ng` == 1 and `gpath` == "/write*"
> print text=rbac-gate-ok
2. *
> print text=rbac-gate-fail