Skip to content

Commit

Permalink
Merge pull request #112 from epage/update
Browse files Browse the repository at this point in the history
chore: Upgrade snapbox to 0.6
  • Loading branch information
epage authored May 24, 2024
2 parents 06f9dcd + 39566b3 commit 0548018
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ path-clean = "1.0.1"

[dev-dependencies]
git-fixture = "0.3.4"
snapbox = { version = "0.5.9", features = ["path"] }
snapbox = { version = "0.6.0", features = ["dir"] }
term-transcript = "0.3.0"
automod = "1.0.14"

Expand Down
13 changes: 8 additions & 5 deletions tests/testsuite/cli.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use snapbox::prelude::*;

#[test]
fn basic() {
let root = snapbox::path::PathFixture::mutable_temp().unwrap();
let root = snapbox::dir::DirRoot::mutable_temp().unwrap();
let root_path = root.path().unwrap();
let plan = git_fixture::TodoList {
commands: vec![
Expand All @@ -26,9 +28,10 @@ fn basic() {
.stdout_eq(
"\
HEAD 1 │ test('arg1');
",
"
.raw(),
)
.stderr_matches(
.stderr_eq(
"\
",
);
Expand All @@ -38,7 +41,7 @@ HEAD 1 │ test('arg1');

#[test]
fn js_highlight_panics() {
let root = snapbox::path::PathFixture::mutable_temp().unwrap();
let root = snapbox::dir::DirRoot::mutable_temp().unwrap();
let root_path = root.path().unwrap();
let plan = git_fixture::TodoList {
commands: vec![
Expand All @@ -62,7 +65,7 @@ fn js_highlight_panics() {
.env("CLICOLOR_FORCE", "1")
.assert()
.success()
.stderr_matches(
.stderr_eq(
"\
",
);
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fn screenshot() {
use term_transcript::{test::TestConfig, ShellOptions};

let scratchpad = snapbox::path::PathFixture::mutable_temp().unwrap();
let scratchpad = snapbox::dir::DirRoot::mutable_temp().unwrap();
let scratchpad_path = scratchpad.path().unwrap();
let status = std::process::Command::new("git")
.arg("clone")
Expand Down

0 comments on commit 0548018

Please sign in to comment.