mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
FEATURE: in:likes and in:posted search filters
This commit is contained in:
@@ -170,7 +170,7 @@ describe Search do
|
||||
context 'security' do
|
||||
|
||||
def result(current_user)
|
||||
Search.execute('hello', guardian: current_user)
|
||||
Search.execute('hello', guardian: Guardian.new(current_user))
|
||||
end
|
||||
|
||||
it 'secures results correctly' do
|
||||
@@ -324,6 +324,10 @@ describe Search do
|
||||
|
||||
Search.execute('test status:noreplies').posts.length.should == 1
|
||||
|
||||
Search.execute('test in:likes', guardian: Guardian.new(topic.user)).posts.length.should == 0
|
||||
|
||||
Search.execute('test in:posted', guardian: Guardian.new(topic.user)).posts.length.should == 1
|
||||
|
||||
end
|
||||
|
||||
it 'can find by latest' do
|
||||
|
||||
Reference in New Issue
Block a user