diff --git a/src/tests.rs b/src/tests.rs index 57b86a2..5f530ff 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -36,13 +36,13 @@ mod tests { // Helper function to create test items with specific content and tags fn create_test_items(dir: &Path) { - // Set the data directory for this test - let env = format!("KEEP_DIR={} cargo run --", dir.display()); - - // Create test items + // Create the test items let input_a = "test content A"; let input_b = "test content B"; + // Set the data directory for this test + let env = format!("KEEP_DIR={} cargo run --", dir.display()); + // Create first item with tag_a and tag let cmd = format!("echo {} | {} tag tag_a tag", input_a, env); let output = run_sh(cmd.as_str());