mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
FIX: Topic.similar_to
results in error if cooked raw is blank.
This commit is contained in:
@ -515,6 +515,10 @@ describe Topic do
|
||||
end
|
||||
end
|
||||
|
||||
it 'does not result in a syntax error when raw is blank after cooking' do
|
||||
expect(Topic.similar_to('some title', '#')).to eq([])
|
||||
end
|
||||
|
||||
context 'with a similar topic' do
|
||||
fab!(:post) {
|
||||
SearchIndexer.enable
|
||||
|
Reference in New Issue
Block a user