From 82f4e9c92e692a68c5f2cdeeffa7e8d8d0568137 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Thu, 26 Jun 2025 13:19:15 -0700 Subject: [PATCH] Assert /posts/index.html exists before request in nginx spec --- spec/nginx_spec.moon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/nginx_spec.moon b/spec/nginx_spec.moon index dfd8403..a5ef9d8 100644 --- a/spec/nginx_spec.moon +++ b/spec/nginx_spec.moon @@ -104,6 +104,10 @@ describe "https://miti.sh/posts/", -> describe "https://miti.sh/posts", -> it "sends /posts/index.html", -> + with require "sitegen.path" + assert .exists("html/posts/index.html"), + "missing html/posts/index.html (try `make build file=blog.html`)" + request = req "https://miti.sh/posts" assert.same request\statusCode!, 200 assert.same request\statusMessage!, "OK"