| 197 | |
| 198 | #[test] |
| 199 | fn empty_slug_rejected() { |
| 200 | let cmd = OrgSet { |
| 201 | slug: "".to_string(), |
| 202 | no_verify: true, // skip network so the check is the only failure |
| 203 | }; |
| 204 | let err = cmd.run().unwrap_err(); |
| 205 | match err { |
| 206 | CliError::InvalidArgument { message } => { |
| 207 | assert!(message.contains("cannot be empty")); |
| 208 | } |
| 209 | other => panic!("expected InvalidArgument, got {other:?}"), |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | // ----------------------------------------------------------------- |
| 214 | // Regression invariant: when the verifier fails, config must NOT be |