summaryrefslogtreecommitdiffstats
path: root/tests/legacy/file_json.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/legacy/file_json.rs')
-rw-r--r--tests/legacy/file_json.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/legacy/file_json.rs b/tests/legacy/file_json.rs
index e2300c6..0ad2c8c 100644
--- a/tests/legacy/file_json.rs
+++ b/tests/legacy/file_json.rs
@@ -58,8 +58,15 @@ fn test_file() {
assert_eq!(s.elements.len(), 10);
assert_eq!(s.elements[3], "4".to_string());
assert_eq!(
- s.place.creator["name"].clone().into_string().unwrap(),
- "John Smith".to_string()
+ s.place
+ .creator
+ .into_iter()
+ .collect::<Vec<(String, config::Value)>>(),
+ vec![
+ ("name".to_string(), "John Smith".into()),
+ ("username".into(), "jsmith".into()),
+ ("email".into(), "jsmith@localhost".into()),
+ ]
);
}