diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-11 00:00:27 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-11 00:00:27 +0200 |
commit | 4fb323f69c11557a51c7da0b2031029f63edf789 (patch) | |
tree | 0d08ce52abbe0c5d123b4051f50ec5bc386652ae /tests/test_blog.rs | |
parent | 0e147a780e74b54afbd56ff7438077d855d5c1c2 (diff) | |
download | macroblog.rs-4fb323f69c11557a51c7da0b2031029f63edf789.tar.gz macroblog.rs-4fb323f69c11557a51c7da0b2031029f63edf789.tar.bz2 macroblog.rs-4fb323f69c11557a51c7da0b2031029f63edf789.zip |
feat: Handle 404 result
Now gracefully handle 404, so instead of just panic now it will return a
proper http 404 response.
Diffstat (limited to 'tests/test_blog.rs')
-rw-r--r-- | tests/test_blog.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_blog.rs b/tests/test_blog.rs index b72f800..6cd3249 100644 --- a/tests/test_blog.rs +++ b/tests/test_blog.rs @@ -1,4 +1,5 @@ use macroblog::blog::*; +use macroblog::assets::*; use chrono::NaiveDate; @@ -17,7 +18,7 @@ fn test_create_blog_entry() { #[test] fn test_read_assets() { // This test meant to test if all files are parsed correctly - let assets = BlogEntry::read_assets(); + let assets = read_assets(); assert!(assets.iter().count() > 1) } |