Skip to content

Commit e47f52b

Browse files
committed
Use the new CARGO_HOME env var to test exist()
1 parent 783a920 commit e47f52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/matchers/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mod tests {
3838

3939
#[test]
4040
fn should_match_if_actual_exists() {
41-
assert!(exist().match_value(&"./Cargo.toml"))
41+
assert!(exist().match_value(&env!("CARGO_HOME")))
4242
}
4343

4444
#[test]

0 commit comments

Comments
 (0)