Skip to content

Commit

Permalink
test: don't involve examples/ directory (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Jun 12, 2024
1 parent 7f6c57b commit eb1958e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <FLAVOR>'",
Expand All @@ -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"));
Expand Down
File renamed without changes.

0 comments on commit eb1958e

Please sign in to comment.