fix: bootstrap log directives, empty DATABASE_URL test
This commit is contained in:
@@ -410,3 +410,13 @@ fn malformed_config_file_reports_the_file_not_a_missing_database_url() {
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn empty_database_url_is_reported_missing() {
|
||||
Jail::expect_with(|jail| {
|
||||
jail_with(jail, &[("DATABASE_URL", "")]);
|
||||
let err = load().expect_err("empty DATABASE_URL is unset");
|
||||
assert!(matches!(err, ConfigError::Missing("DATABASE_URL")), "{err}");
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user