unwrap result from fill_config in tests to silence the warnings and let test fail if fill_config fails

This commit is contained in:
Mathieu David 2016-02-22 23:04:35 +01:00
parent d2b4cf39af
commit 374d865251

View File

@ -570,7 +570,7 @@ rust-playpen = { enabled = true }
# ... # ...
"##; "##;
config.fill_config(toml); config.fill_config(toml).expect("Error while parsing the config");
assert_eq!(config.title(), "mdBook"); assert_eq!(config.title(), "mdBook");
assert_eq!(config.description(), "This is a command line utility to generate books from markdown files"); assert_eq!(config.description(), "This is a command line utility to generate books from markdown files");
@ -594,7 +594,7 @@ rust-playpen = { enabled = true }
let toml = r#""#; let toml = r#""#;
config.fill_config(toml); config.fill_config(toml).expect("Error while parsing the config");;
assert_eq!(config.title(), "Book"); assert_eq!(config.title(), "Book");
assert_eq!(config.description(), ""); assert_eq!(config.description(), "");