Fix #5293: NoMethodError in sitemap when relation is empty.

This commit is contained in:
evazion
2022-10-14 19:49:21 -05:00
parent 2c3a254359
commit 9c48953e6f
3 changed files with 28 additions and 1 deletions

View File

@@ -23,6 +23,12 @@ class StaticControllerTest < ActionDispatch::IntegrationTest
assert_equal(1, response.parsed_body.css("sitemap loc").size)
end
end
should "work when the sitemap is empty" do
get sitemap_path(sitemap: "pools"), as: :xml
assert_response :success
end
end
context "dtext_help action" do