()
| 703 | |
| 704 | #[test] |
| 705 | fn test_init_builder_chain() { |
| 706 | let init = Init::at_path("/project") |
| 707 | .with_view("main") |
| 708 | .with_kind("python"); |
| 709 | |
| 710 | assert_eq!(init.path, PathBuf::from("/project")); |
| 711 | assert_eq!(init.view, "main"); |
| 712 | assert_eq!(init.kind, Some("python".to_string())); |
| 713 | } |
| 714 | |
| 715 | #[test] |
| 716 | fn test_init_with_vault_flag() { |