DEV: Fix a flaky spec (#18146)

In some cases the topic of the fabricated post can be titled "This is a test topic 777" which matches the search query "#777"
This commit is contained in:
Jarek Radosz
2022-08-31 20:52:57 +02:00
committed by GitHub
parent 0f0048e8e3
commit 8fa9f0cf92

View File

@ -1903,7 +1903,7 @@ RSpec.describe Search do
results = Search.new('#9998').execute
expect(results.posts.length).to eq(1)
results = Search.new('#777').execute
results = Search.new('#nonexistent').execute
expect(results.posts.length).to eq(0)
results = Search.new('xxx #:').execute