A Git repository with an Atomic repository and the shim enabled.
()
| 291 | |
| 292 | /// A Git repository with an Atomic repository and the shim enabled. |
| 293 | fn enabled_repository() -> TempDir { |
| 294 | let root = TempDir::new().unwrap(); |
| 295 | drop(GitRepository::init(root.path()).unwrap()); |
| 296 | drop(atomic_repository::Repository::init(root.path()).unwrap()); |
| 297 | enable_shim(root.path(), false).unwrap(); |
| 298 | root |
| 299 | } |
| 300 | |
| 301 | #[test] |
| 302 | fn enable_installs_the_dispatcher_table_and_uninstall_removes_it() { |