()
| 18 | |
| 19 | impl Fixture { |
| 20 | fn new() -> Self { |
| 21 | let fixture = Self { |
| 22 | root: tempfile::tempdir().unwrap(), |
| 23 | home: tempfile::tempdir().unwrap(), |
| 24 | }; |
| 25 | fixture.run(&[ |
| 26 | "identity", |
| 27 | "new", |
| 28 | "tester", |
| 29 | "--email", |
| 30 | "tester@example.invalid", |
| 31 | "--set-default", |
| 32 | ]); |
| 33 | fixture.run(&["init"]); |
| 34 | fixture |
| 35 | } |
| 36 | |
| 37 | fn root(&self) -> &Path { |
| 38 | self.root.path() |