From 4597c685da2c6ea177007fdb6abff77ed19bc364 Mon Sep 17 00:00:00 2001 From: Petr Date: Thu, 25 Jun 2026 21:41:19 +0200 Subject: [PATCH] test: add RSS feed endpoint tests Verify content type, RSS structure, draft exclusion, and language element. --- test/server_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/server_test.rb b/test/server_test.rb index 36d174f..e01edfe 100644 --- a/test/server_test.rb +++ b/test/server_test.rb @@ -92,4 +92,15 @@ class ServerTest < Minitest::Test assert_includes slugs, "global" refute_includes slugs, "hello" end + + def test_feed_endpoint + get "/api/volumen/feed.xml" + assert_predicate last_response, :ok? + assert_equal "application/rss+xml", last_response["Content-Type"]&.split(";")&.first + body = last_response.body + assert_includes body, "" + assert_includes body, "Hello" + refute_includes body, "Draft" + assert_includes body, "en" + end end