diff options
Diffstat (limited to 'src/components/equipment.rs')
| -rw-r--r-- | src/components/equipment.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/equipment.rs b/src/components/equipment.rs index d87502d..cbd482c 100644 --- a/src/components/equipment.rs +++ b/src/components/equipment.rs @@ -90,10 +90,10 @@ mod tests { } #[test] - fn equippable_from_json() { + fn equippable_deserialize() { assert_eq!( - Equippable::from_json(&json!({"slot": "hand", "stats": {"strength": 10}})), - Some(Equippable {slot: Slot::Hand, stats: hashmap!(Stat::Strength => 10), sprite: None}) + Equippable::deserialize(&json!({"slot": "hand", "stats": {"strength": 10}})).unwrap(), + Equippable {slot: Slot::Hand, stats: hashmap!(Stat::Strength => 10), sprite: None} ); } |
