diff --git a/spec/integration/topic_thumbnail_spec.rb b/spec/integration/topic_thumbnail_spec.rb index c71cf8f96e8..dcdbb084d5a 100644 --- a/spec/integration/topic_thumbnail_spec.rb +++ b/spec/integration/topic_thumbnail_spec.rb @@ -10,7 +10,7 @@ describe "Topic Thumbnails" do context 'latest' do def get_topic - Discourse.redis.del(topic.thumbnail_job_redis_key([])) + Discourse.redis.del(topic.thumbnail_job_redis_key(Topic.thumbnail_sizes)) get '/latest.json' response.parsed_body["topic_list"]["topics"][0] end diff --git a/spec/serializers/topic_view_serializer_spec.rb b/spec/serializers/topic_view_serializer_spec.rb index 5da26a674ec..f6249b275bb 100644 --- a/spec/serializers/topic_view_serializer_spec.rb +++ b/spec/serializers/topic_view_serializer_spec.rb @@ -60,7 +60,7 @@ describe TopicViewSerializer do it 'should have thumbnails' do SiteSetting.create_thumbnails = true - Discourse.redis.del(topic.thumbnail_job_redis_key([])) + Discourse.redis.del(topic.thumbnail_job_redis_key(Topic.thumbnail_sizes)) json = nil expect do