mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
This reverts commit 71c74a262d.
This commit is contained in:
@@ -291,22 +291,6 @@ describe SearchIndexer do
|
||||
words = post_search_data.search_data.scan(/'([^']*)'/).map { |match| match[0] }
|
||||
expect(words).to contain_exactly('best', 'beig', 'obj', 'http', 'titl', 'long', 'enou', 'unca')
|
||||
end
|
||||
|
||||
context 'private messages' do
|
||||
fab!(:user1) { Fabricate(:user, name: 'bloop', username: 'bloopdroop') }
|
||||
fab!(:user2) { Fabricate(:user, name: 'two', username: 'twotone') }
|
||||
let!(:pm_topic) { Fabricate(:private_message_topic,
|
||||
topic_allowed_users: [
|
||||
Fabricate.build(:topic_allowed_user, user: user1),
|
||||
Fabricate.build(:topic_allowed_user, user: user2)
|
||||
]) }
|
||||
let(:pm_post) { Fabricate(:post, topic: pm_topic) }
|
||||
|
||||
it 'includes participating users in a private message' do
|
||||
search_data = pm_post.post_search_data.search_data
|
||||
expect(search_data).to include("bloop", "bloopdroop", "two", "twoton")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '.queue_post_reindex' do
|
||||
|
||||
Reference in New Issue
Block a user