Fixed stable unit tests.

This commit is contained in:
Jordan Petridis
2017-11-28 04:42:15 +02:00
parent 34e808182c
commit d81f9c6ad7
4 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -119,6 +119,7 @@ pub fn update_podcast_widget(stack: &gtk::Stack, pd: &Podcast) {
#[cfg(test)]
mod tests {
use hammond_data::Source;
use hammond_data::feed::index;
use diesel::Identifiable;
use super::*;
@@ -132,7 +133,8 @@ mod tests {
let sid = source.id().clone();
// Convert Source it into a Feed and index it
source.into_feed().unwrap().index().unwrap();
let feed = source.into_feed().unwrap();
index(vec!(feed));
// Get the Podcast
let pd = dbqueries::get_podcast_from_source_id(sid).unwrap();