hammond-data/src/feed.rs api changes.

This commit is contained in:
Jordan Petridis
2017-11-23 18:48:41 +02:00
parent a58671ea9a
commit aa7c493e81
7 changed files with 132 additions and 35 deletions
+6 -2
View File
@@ -123,13 +123,17 @@ mod tests {
#[test]
fn test_get_pixbuf_from_path() {
let pd = Source::from_url("http://www.newrustacean.com/feed.xml")
let url = "http://www.newrustacean.com/feed.xml";
Source::from_url(url)
.unwrap()
.into_feed()
.unwrap()
.get_podcast()
.index()
.unwrap();
let pd = dbqueries::get_podcast_from_title("New Rustacean").unwrap();
let pxbuf = get_pixbuf_from_path(&pd);
assert!(pxbuf.is_some());
}