()
| 226 | |
| 227 | #[test] |
| 228 | fn test_run_without_name() { |
| 229 | let cmd = Delete::default(); |
| 230 | let result = cmd.run(); |
| 231 | assert!(result.is_err()); |
| 232 | match result.unwrap_err() { |
| 233 | CliError::InvalidArgument { message } => { |
| 234 | assert!(message.contains("required")); |
| 235 | } |
| 236 | other => panic!("Expected InvalidArgument, got: {:?}", other), |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | // ------------------------------------------------------------------------- |
| 241 | // Integration Tests (require temp repository) |