mirror of
https://github.com/getzola/zola
synced 2024-12-12 21:32:29 +00:00
Fix dodgy test
This commit is contained in:
parent
e21a102f89
commit
55a166ac9e
1 changed files with 2 additions and 1 deletions
|
@ -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/");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue