mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:08:53 +08:00
REFACTOR: search improved so filters are extensible
- added posts_count filter - fixed it so you can search with a filter only
This commit is contained in:
@ -378,11 +378,13 @@ describe Search do
|
||||
|
||||
expect(Search.execute('test status:closed').posts.length).to eq(0)
|
||||
expect(Search.execute('test status:open').posts.length).to eq(1)
|
||||
expect(Search.execute('test posts_count:1').posts.length).to eq(1)
|
||||
|
||||
topic.closed = true
|
||||
topic.save
|
||||
|
||||
expect(Search.execute('test status:closed').posts.length).to eq(1)
|
||||
expect(Search.execute('status:closed').posts.length).to eq(1)
|
||||
expect(Search.execute('test status:open').posts.length).to eq(0)
|
||||
|
||||
topic.archived = true
|
||||
|
Reference in New Issue
Block a user