FEATURE: in:tracking and in:watching search filters

This commit is contained in:
Sam
2014-10-18 15:34:05 +11:00
parent 8afd7a7f21
commit e6cc4cba8b
3 changed files with 20 additions and 0 deletions

View File

@@ -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