From 22dcfb963efb6da6d16b3758028db3603d339ebd Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 7 Dec 2021 21:04:16 +0100 Subject: [PATCH] Test config.title in integration tests --- components/site/tests/site.rs | 2 ++ test_site/config.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/site/tests/site.rs b/components/site/tests/site.rs index 461a767b..2511af0c 100644 --- a/components/site/tests/site.rs +++ b/components/site/tests/site.rs @@ -111,6 +111,8 @@ fn can_build_site_without_live_reload() { assert!(file_exists!(public, "sitemap.xml")); assert!(file_exists!(public, "robots.txt")); 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")); // Shortcodes work diff --git a/test_site/config.toml b/test_site/config.toml index 7093a779..58f650ed 100644 --- a/test_site/config.toml +++ b/test_site/config.toml @@ -1,4 +1,4 @@ -title = "My site" +title = "My Integration Testing site" base_url = "https://replace-this-with-your-url.com" compile_sass = true generate_feed = true