FIX: tests for reindex_search_spec pass regardless of seed (#10297)

FIX: tests for reindex_search_spec pass regardless of seed (#10297)

diff --git a/spec/jobs/reindex_search_spec.rb b/spec/jobs/reindex_search_spec.rb
index cd28cf0..1cba71a 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

GitHub sha: 20dc8454

This commit appears in #10297 which was merged by markvanlan.

Thank you for fixing @markvanlan :+1:

1 Like