test: Test dotenvy regression (#5461)

pull/24376/head
Marko Mikulicic 2022-08-24 11:39:55 +02:00 committed by GitHub
parent 4beb721a9a
commit 99daa13897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -477,3 +477,16 @@ where
}
}
}
#[cfg(test)]
mod tests {
use std::io::Write;
#[test]
// ensures that dependabot doesn't update dotenvy until https://github.com/allan2/dotenvy/issues/12 is fixed
fn dotenvy_regression() {
let mut tmp = tempfile::NamedTempFile::new().unwrap();
write!(tmp, "# '").unwrap();
dotenvy::from_path(tmp.path()).unwrap();
}
}