mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: in:tracking and in:watching search filters
This commit is contained in:
@@ -328,6 +328,10 @@ describe Search do
|
||||
|
||||
Search.execute('test in:posted', guardian: Guardian.new(topic.user)).posts.length.should == 1
|
||||
|
||||
TopicUser.change(topic.user.id, topic.id, notification_level: TopicUser.notification_levels[:tracking])
|
||||
Search.execute('test in:watching', guardian: Guardian.new(topic.user)).posts.length.should == 0
|
||||
Search.execute('test in:tracking', guardian: Guardian.new(topic.user)).posts.length.should == 1
|
||||
|
||||
end
|
||||
|
||||
it 'can find by latest' do
|
||||
|
||||
Reference in New Issue
Block a user