| 212 | |
| 213 | #[test] |
| 214 | fn empty_slug_rejected() { |
| 215 | let cmd = OrgSet { |
| 216 | slug: "".to_string(), |
| 217 | no_verify: true, // skip network so the check is the only failure |
| 218 | }; |
| 219 | let err = cmd.run().unwrap_err(); |
| 220 | match err { |
| 221 | CliError::InvalidArgument { message } => { |
| 222 | assert!(message.contains("cannot be empty")); |
| 223 | } |
| 224 | other => panic!("expected InvalidArgument, got {other:?}"), |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | // ----------------------------------------------------------------- |
| 229 | // Regression invariant: when the verifier fails, config must NOT be |