diff --git a/spec/jobs/reindex_search_spec.rb b/spec/jobs/reindex_search_spec.rb index cd28cf08c35..1cba71a87a8 100644 --- a/spec/jobs/reindex_search_spec.rb +++ b/spec/jobs/reindex_search_spec.rb @@ -40,7 +40,7 @@ describe Jobs::ReindexSearch do end def self.posts - @posts + @posts ||= [] end def self.reset