test: Test dotenvy regression (#5461)
parent
4beb721a9a
commit
99daa13897
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue