Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed May 24, 2024
1 parent 60e1f76 commit 5433024
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ fn create_with_tasks() {

#[test]
fn run() {
let path_env_var = get_path_env_var();
let path = locate_script("examples/demo.sh");
Command::cargo_bin("argc")
.unwrap()
.arg("--argc-run")
.arg(path)
.env("PATH", path_env_var)
.assert()
.stderr(predicates::str::contains("USAGE: demo"))
.success();
Expand Down

0 comments on commit 5433024

Please sign in to comment.