FEATURE: new search filter in:wiki

This commit is contained in:
Arpit Jalan
2016-05-13 13:56:53 +05:30
parent ae52f445c9
commit 5b030017d9
3 changed files with 12 additions and 1 deletions

View File

@ -426,6 +426,13 @@ describe Search do
expect(Search.execute('boom in:unpinned', guardian: guardian).posts.length).to eq(1)
end
it 'supports wiki' do
topic = Fabricate(:topic)
wiki_post = Fabricate(:post, raw: 'this is a test 248', wiki: true, topic: topic)
expect(Search.execute('test 248 in:wiki').posts.length).to eq(1)
end
it 'supports before and after, in:first, user:, @username' do
time = Time.zone.parse('2001-05-20 2:55')