()
| 434 | |
| 435 | #[test] |
| 436 | fn test_run_without_name() { |
| 437 | let cmd = Delete::default(); |
| 438 | let result = cmd.run(); |
| 439 | assert!(result.is_err()); |
| 440 | match result.unwrap_err() { |
| 441 | CliError::InvalidArgument { message } => { |
| 442 | assert!(message.contains("required")); |
| 443 | } |
| 444 | other => panic!("Expected InvalidArgument, got: {:?}", other), |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | // ------------------------------------------------------------------------- |
| 449 | // Integration Tests (require temp repository) |