fix spec (#10069)

fix spec (#10069)

diff --git a/spec/requests/published_pages_controller_spec.rb b/spec/requests/published_pages_controller_spec.rb
index 0662554..d5fed80 100644
--- a/spec/requests/published_pages_controller_spec.rb
+++ b/spec/requests/published_pages_controller_spec.rb
@@ -60,7 +60,9 @@ RSpec.describe PublishedPagesController do
         end
 
         context "published page is public" do
-          fab!(:public_published_page) { Fabricate(:published_page, public: true) }
+          fab!(:public_published_page) {
+            Fabricate(:published_page, public: true, slug: "a-public-page")
+          }
 
           it "returns 200 for a topic you can't see" do
             get public_published_page.path

GitHub sha: 75991a24

This commit appears in #10069 which was merged by jjaffeux.