summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/interactive/app_test/unit.rs2
-rw-r--r--src/interactive/app_test/utils.rs2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/interactive/app_test/unit.rs b/src/interactive/app_test/unit.rs
index 8910025..e27d456 100644
--- a/src/interactive/app_test/unit.rs
+++ b/src/interactive/app_test/unit.rs
@@ -17,8 +17,6 @@ fn it_can_handle_ending_traversal_reaching_top_but_skipping_levels() -> Result<(
Ok(())
}
-// Won't work on windows as there are backslashes in the paths :D
-#[cfg_attr(windows, ignore)]
#[test]
fn it_can_handle_ending_traversal_without_reaching_the_top() -> Result<()> {
let (_, app) = initialized_app_and_terminal_from_fixture(&["sample-02"])?;
diff --git a/src/interactive/app_test/utils.rs b/src/interactive/app_test/utils.rs
index 90748b2..454acc2 100644
--- a/src/interactive/app_test/utils.rs
+++ b/src/interactive/app_test/utils.rs
@@ -255,7 +255,7 @@ pub fn sample_02_tree() -> Tree {
let r = add_node("", root_size, None);
{
let s = add_node(
- format!("{}/{}", FIXTURE_PATH, "sample-02").as_str(),
+ Path::new(FIXTURE_PATH).join("sample-02").to_str().unwrap(),
root_size,
Some(r),
);