Fix dodgy test

This commit is contained in:
Vincent Prouillet 2019-05-17 07:35:18 -07:00
parent e21a102f89
commit 55a166ac9e

View file

@ -579,7 +579,8 @@ Hello world
assert_eq!(page.file.parent, path.join("content").join("posts"));
assert_eq!(page.assets.len(), 3);
assert_eq!(page.serialized_assets.len(), 3);
assert_eq!(page.serialized_assets[0], "posts/with_assets/graph.jpg");
// We should not get with-assets since that's the slugified version
assert!(page.serialized_assets[0].contains("with_assets"));
assert_eq!(page.permalink, "http://a-website.com/posts/with-assets/");
}