From 7291de42f4c2d7de7fde1b48197b67816bea27db Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Mon, 20 Jul 2020 00:25:44 +0000 Subject: [PATCH] Fix issue with test since Mod topics aren't visible to anonymous --- test/functional/forum_topics_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/forum_topics_controller_test.rb b/test/functional/forum_topics_controller_test.rb index 59eb04d05..06e7d0807 100644 --- a/test/functional/forum_topics_controller_test.rb +++ b/test/functional/forum_topics_controller_test.rb @@ -121,7 +121,7 @@ class ForumTopicsControllerTest < ActionDispatch::IntegrationTest should "render for a sitemap" do get forum_topics_path(format: :sitemap) assert_response :success - assert_equal(ForumTopic.count, response.parsed_body.css("urlset url loc").size) + assert_equal(ForumTopic.visible(User.anonymous).count, response.parsed_body.css("urlset url loc").size) end context "with private topics" do