Skip to content

Commit dd4c8c0

Browse files
committed
test(vendor): snapshot .cargo-checksum.json
So that it explicitly shows what we really vendor
1 parent ee08992 commit dd4c8c0

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

tests/testsuite/vendor.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,11 +1094,19 @@ fn ignore_files() {
10941094

10951095
p.cargo("vendor --respect-source-config").run();
10961096
let csum = p.read_file("vendor/url/.cargo-checksum.json");
1097-
assert!(!csum.contains("foo.orig"));
1098-
assert!(!csum.contains(".gitignore"));
1099-
assert!(!csum.contains(".gitattributes"));
1100-
assert!(!csum.contains(".cargo-ok"));
1101-
assert!(!csum.contains("foo.rej"));
1097+
assert_e2e().eq(
1098+
csum,
1099+
str![[r#"
1100+
{
1101+
"files": {
1102+
"Cargo.toml": "[..]",
1103+
"src/lib.rs": "[..]"
1104+
},
1105+
"package": "[..]"
1106+
}
1107+
"#]]
1108+
.is_json(),
1109+
);
11021110
}
11031111

11041112
#[cargo_test]

0 commit comments

Comments
 (0)