From f7f6087d70dd91ed5079824ea0f092b3bc6f1736 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 22 Jan 2018 21:09:06 +0200 Subject: [PATCH] NewPodcast: On update unit test assert .id and .source_id fields stay the same. --- hammond-data/src/models/new_podcast.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hammond-data/src/models/new_podcast.rs b/hammond-data/src/models/new_podcast.rs index 0dbda3f..3bc6218 100644 --- a/hammond-data/src/models/new_podcast.rs +++ b/hammond-data/src/models/new_podcast.rs @@ -354,6 +354,8 @@ mod tests { let mut new = dbqueries::get_podcast_from_source_id(42).unwrap(); assert_ne!(old, new); + assert_eq!(old.id(), new.id()); + assert_eq!(old.source_id(), new.source_id()); assert_eq!(updated, &new); assert_ne!(updated, &old);