diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-03-26 21:59:20 +0100 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-03-26 21:59:20 +0100 |
| commit | 98c4227c816bf2852aac7a638cf9f955451c5f35 (patch) | |
| tree | 751b5c694703103701acdfbb429b7754990e8eeb /src | |
| parent | Fix config default location (diff) | |
| download | sl0ppij-98c4227c816bf2852aac7a638cf9f955451c5f35.tar.gz sl0ppij-98c4227c816bf2852aac7a638cf9f955451c5f35.tar.xz sl0ppij-98c4227c816bf2852aac7a638cf9f955451c5f35.zip | |
Fix tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/input/config.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/input/config.rs b/src/common/input/config.rs index 4678343e..d7420f67 100644 --- a/src/common/input/config.rs +++ b/src/common/input/config.rs @@ -128,16 +128,17 @@ mod config_test { use super::*; #[test] - fn no_config_file_equals_default_config() { + fn clean_option_equals_default_config() { let no_file = PathBuf::from(r"../fixtures/config/config.yamlll"); - let config = Config::from_option_or_default(Some(no_file)).unwrap(); + let cli_config = ConfigCli::Config { path: Some(no_file) ,clean: true}; + let config = Config::from_cli_config(Some(cli_config)).unwrap(); let default = Config::default(); assert_eq!(config, default); } #[test] fn no_config_option_file_equals_default_config() { - let config = Config::from_option_or_default(None).unwrap(); + let config = Config::from_cli_config(None).unwrap(); let default = Config::default(); assert_eq!(config, default); } |
