Refactored empty view logic.

This commit is contained in:
Jordan Petridis
2017-11-10 16:15:53 +02:00
parent fe571df1d5
commit f2476cde65
4 changed files with 35 additions and 29 deletions
+3
View File
@@ -183,10 +183,13 @@ mod tests {
use hammond_data::{DL_DIR, HAMMOND_CACHE};
use hammond_data::models::NewPodcast;
use std::fs;
#[test]
fn test_get_dl_folder() {
let foo_ = format!("{}/{}", DL_DIR.to_str().unwrap(), "foo");
assert_eq!(get_download_folder("foo").unwrap(), foo_);
let _ = fs::remove_dir_all(foo_);
}
#[test]