diff options
author | Ryan Leckey <ryan@launchbadge.com> | 2018-09-25 23:45:11 -0700 |
---|---|---|
committer | Ryan Leckey <ryan@launchbadge.com> | 2018-09-25 23:45:11 -0700 |
commit | 8cfde7d3c6767e39e4ca35f99f453f810f6d1926 (patch) | |
tree | 7d2e4ae3734c9c11d5d5b94bf399dfd5da3149e4 /tests | |
parent | a1cd868c0224f16d921a25f04cbc39cb03a5471d (diff) |
Use a build config on Environment instead of a feature flag for #78
Diffstat (limited to 'tests')
-rw-r--r-- | tests/env.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/env.rs b/tests/env.rs index d1cb11a..bb1a1ec 100644 --- a/tests/env.rs +++ b/tests/env.rs @@ -54,7 +54,7 @@ fn test_prefix_with_variant_forms_of_spelling() { fn test_separator_behavior() { env::set_var("C_B_A", "abc"); - let mut environment = Environment::with_prefix("C").separator("_"); + let environment = Environment::with_prefix("C").separator("_"); assert!(environment.collect().unwrap().contains_key("b.a")); @@ -62,11 +62,10 @@ fn test_separator_behavior() { } #[test] -#[cfg(feature = "ignore-empty-env-vars")] fn test_empty_value_is_ignored() { env::set_var("C_A_B", ""); - let environment = Environment::new(); + let environment = Environment::new().ignore_empty(true); assert!(!environment.collect().unwrap().contains_key("c_a_b")); |