NewPodcast: On update unit test assert .id and .source_id fields stay the same.

This commit is contained in:
Jordan Petridis 2018-01-22 21:09:06 +02:00
parent ea75d50053
commit f7f6087d70
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -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);