summaryrefslogtreecommitdiff
path: root/src/template.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/template.rs')
-rw-r--r--src/template.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/template.rs b/src/template.rs
index 530fbc9..8282a79 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -125,7 +125,7 @@ mod tests {
#[test]
fn template_with_kwarg(){
assert_eq!(
- Template::deserialize(json!({"type": "wall", "kwargs": {"health": 50}})).unwrap(),
+ Template::deserialize(json!({":template": "wall", "health": 50})).unwrap(),
Template::new("wall", hashmap!{"health".to_string() => Parameter::Int(50)})
);
}