Test config.title in integration tests

This commit is contained in:
Vincent Prouillet 2021-12-07 21:04:16 +01:00
parent 7ce4f75d09
commit 22dcfb963e
2 changed files with 3 additions and 1 deletions

View file

@ -111,6 +111,8 @@ fn can_build_site_without_live_reload() {
assert!(file_exists!(public, "sitemap.xml")); assert!(file_exists!(public, "sitemap.xml"));
assert!(file_exists!(public, "robots.txt")); assert!(file_exists!(public, "robots.txt"));
assert!(file_exists!(public, "a-fixed-url/index.html")); assert!(file_exists!(public, "a-fixed-url/index.html"));
// the config.title is there
assert!(file_contains!(public, "index.html", "My Integration Testing site"));
assert!(file_exists!(public, "posts/python/index.html")); assert!(file_exists!(public, "posts/python/index.html"));
// Shortcodes work // Shortcodes work

View file

@ -1,4 +1,4 @@
title = "My site" title = "My Integration Testing site"
base_url = "https://replace-this-with-your-url.com" base_url = "https://replace-this-with-your-url.com"
compile_sass = true compile_sass = true
generate_feed = true generate_feed = true