()
| 1005 | |
| 1006 | #[test] |
| 1007 | fn test_is_installed() { |
| 1008 | let dir = tempfile::tempdir().unwrap(); |
| 1009 | let hook = make_hook(); |
| 1010 | |
| 1011 | assert!(!hook.is_installed(dir.path())); |
| 1012 | |
| 1013 | hook.install(dir.path()).unwrap(); |
| 1014 | |
| 1015 | assert!(hook.is_installed(dir.path())); |
| 1016 | } |
| 1017 | |
| 1018 | #[test] |
| 1019 | fn test_uninstall_removes_atomic_hooks() { |