Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix build

Dan Ungureanu8cbb6e35cbfc
diff --git a/spec/components/topic_query_spec.rb b/spec/components/topic_query_spec.rb
index b4c5cd93458..3793da75799 100644
--- a/spec/components/topic_query_spec.rb
+++ b/spec/components/topic_query_spec.rb
@@ -145,7 +145,7 @@ describe TopicQuery do
list = TopicQuery.new(moderator, category: diff_category.slug).list_latest
expect(list.topics.size).to eq(1)
- expect(list.preload_key).to eq("topic_list_c/different-category/l/latest")
+ expect(list.preload_key).to eq("topic_list_c/different-category/#{diff_category.id}/l/latest")
# Defaults to no category filter when slug does not exist
expect(TopicQuery.new(moderator, category: 'made up slug').list_latest.topics.size).to eq(2)