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

In this spec, FakeIndexer.index was never called, because the test does not reindex any posts. Thus @posts is nil.

We just set @posts ||= [] and the tests are fixed. This went unnoticed because the test only fails if other tests have not been run first.

GitHub