From 582532aedbf780131d74ecbda2efadac6bc64309 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 4 Jun 2024 13:36:09 -0500 Subject: [PATCH] chore: Upgrade to snapbox 0.6 --- Cargo.lock | 4 ++-- tests/custom-panic/Cargo.toml | 2 +- tests/custom-panic/tests/integration.rs | 9 +++++---- tests/single-panic/Cargo.toml | 2 +- tests/single-panic/tests/integration.rs | 9 +++++---- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ffa17d1..36e9b65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,9 +294,9 @@ dependencies = [ [[package]] name = "snapbox" -version = "0.5.14" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f37d101fcafc8e73748fd8a1b7048f5979f93d372fd17027d7724c1643bc379b" +checksum = "94204b12a4d3550420babdb4148c6639692e4e3e61060866929c5107f208aeb6" dependencies = [ "anstream", "anstyle", diff --git a/tests/custom-panic/Cargo.toml b/tests/custom-panic/Cargo.toml index 4df4de0..c00b2ac 100644 --- a/tests/custom-panic/Cargo.toml +++ b/tests/custom-panic/Cargo.toml @@ -12,4 +12,4 @@ release = false human-panic = { path = "../.." } [dev-dependencies] -snapbox = { version = "0.5.14", features = ["cmd"] } +snapbox = { version = "0.6.4", features = ["cmd"] } diff --git a/tests/custom-panic/tests/integration.rs b/tests/custom-panic/tests/integration.rs index d1bb061..455c514 100644 --- a/tests/custom-panic/tests/integration.rs +++ b/tests/custom-panic/tests/integration.rs @@ -30,9 +30,10 @@ fn debug() { snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("custom-panic-test")) .assert() .stderr_eq_(snapbox::str![[r#" - thread 'main' panicked at tests/custom-panic/src/main.rs:11:5: - OMG EVERYTHING IS ON FIRE!!! - note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace - "#]]) +thread 'main' panicked at tests/custom-panic/src/main.rs:11:5: +OMG EVERYTHING IS ON FIRE!!! +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +"#]]) .code(101); } diff --git a/tests/single-panic/Cargo.toml b/tests/single-panic/Cargo.toml index 474e73a..e2d2495 100644 --- a/tests/single-panic/Cargo.toml +++ b/tests/single-panic/Cargo.toml @@ -12,4 +12,4 @@ release = false human-panic = { path = "../.." } [dev-dependencies] -snapbox = { version = "0.5.14", features = ["cmd"] } +snapbox = { version = "0.6.4", features = ["cmd"] } diff --git a/tests/single-panic/tests/integration.rs b/tests/single-panic/tests/integration.rs index 5d68eb5..84b6fdd 100644 --- a/tests/single-panic/tests/integration.rs +++ b/tests/single-panic/tests/integration.rs @@ -25,9 +25,10 @@ fn debug() { snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("single-panic-test")) .assert() .stderr_eq_(snapbox::str![[r#" - thread 'main' panicked at tests/single-panic/src/main.rs:7:5: - OMG EVERYTHING IS ON FIRE!!! - note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace - "#]]) +thread 'main' panicked at tests/single-panic/src/main.rs:7:5: +OMG EVERYTHING IS ON FIRE!!! +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +"#]]) .code(101); }