From eb1958e4227d5c8808c9e819837043fe13a7e29c Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:03:35 -0400 Subject: [PATCH] test: don't involve examples/ directory (#6) --- tests/cli.rs | 4 ++-- {examples => tests/fixtures}/errors.tera | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename {examples => tests/fixtures}/errors.tera (100%) diff --git a/tests/cli.rs b/tests/cli.rs index 26570b6..145e560 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -107,7 +107,7 @@ mod sad_path { #[test] fn invalid_flavor() { let mut cmd = Command::cargo_bin("whiskers").expect("binary exists"); - cmd.arg("examples/demo/input.tera") + cmd.arg("tests/fixtures/single/single.tera") .args(["--flavor", "invalid"]); cmd.assert().failure().stderr(predicate::str::contains( "error: invalid value 'invalid' for '--flavor '", @@ -117,7 +117,7 @@ mod sad_path { #[test] fn template_contains_invalid_syntax() { let mut cmd = Command::cargo_bin("whiskers").expect("binary exists"); - cmd.arg("examples/errors.tera").args(["-f", "mocha"]); + cmd.arg("tests/fixtures/errors.tera").args(["-f", "mocha"]); cmd.assert() .failure() .stderr(predicate::str::contains("Error: Template is invalid")); diff --git a/examples/errors.tera b/tests/fixtures/errors.tera similarity index 100% rename from examples/errors.tera rename to tests/fixtures/errors.tera