From 4bb966aae68e2a3d46a84ec759601f71ecad95e8 Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Fri, 28 Feb 2020 11:31:04 +0200 Subject: [PATCH] DEV: Fix build Follow up to 60184a290c45926583393cf53895e063b4798ff5. --- spec/components/topic_query_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)