Skip to content

Commit 1916a6a

Browse files
committed
bump assert_cmd
1 parent 4313958 commit 1916a6a

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pretty_assertions = { version = "1.4", default-features = false, features = [
222222
"std",
223223
] }
224224
manifest-dir-macros = { version = "0.1.18", default-features = false }
225-
assert_cmd = { version = "2.0", default-features = false }
225+
assert_cmd = { version = "2.1", default-features = false }
226226
tokio = { version = "1", default-features = false }
227227
bevy_console = { version = "0.14", default-features = false }
228228
tracing-tracy = { version = "0.11", default-features = false }

crates/lad_backends/lua_language_server_lad_backend/tests/integration_tests.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
use std::{fs::DirEntry, path::PathBuf};
44

5-
use assert_cmd::Command;
5+
use assert_cmd::{Command, cargo_bin};
66
fn add_executable_dir_to_path() {
7-
let command_path = Command::cargo_bin("lad-lls").expect("failed to find lad-lls binary");
7+
let command_path = Command::new(cargo_bin!("lad-lls"));
88
let command_path = command_path.get_program();
99
let command_path = PathBuf::from(command_path);
1010
let dir = command_path
@@ -62,8 +62,7 @@ fn main() {
6262
let folder_path = entry.path();
6363
let ladfile_path = folder_path.join("test.lad.json");
6464

65-
Command::cargo_bin("lad-lls")
66-
.expect("failed to find lad-lls binary")
65+
Command::new(cargo_bin!("lad-lls"))
6766
.arg("--input")
6867
.arg(&ladfile_path)
6968
.arg("--output")

crates/lad_backends/mdbook_lad_preprocessor/tests/book_integration_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
use std::path::PathBuf;
44

5-
use assert_cmd::Command;
5+
use assert_cmd::{Command, cargo_bin};
66
fn add_executable_dir_to_path() {
7-
let command_path = Command::cargo_bin("mdbook-lad-preprocessor")
8-
.expect("failed to find mdbook-lad-preprocessor binary");
7+
let command_path = Command::new(cargo_bin!("mdbook-lad-preprocessor"));
8+
99
let command_path = command_path.get_program();
1010
let command_path = PathBuf::from(command_path);
1111
let dir = command_path

0 commit comments

Comments
 (0)