Update regex for views search filter.

This commit is contained in:
Arpit Jalan
2020-09-24 17:05:55 +05:30
parent 5b0ce25dd7
commit cdf45f4fe6
5 changed files with 38 additions and 38 deletions

View File

@@ -1399,8 +1399,8 @@ describe Search do
post = Fabricate(:post, raw: 'Topic', topic: topic)
post2 = Fabricate(:post, raw: 'Topic', topic: topic2)
expect(Search.execute('Topic min_view_count:150').posts.map(&:id)).to eq([post2.id])
expect(Search.execute('Topic max_view_count:150').posts.map(&:id)).to eq([post.id])
expect(Search.execute('Topic min_views:150').posts.map(&:id)).to eq([post2.id])
expect(Search.execute('Topic max_views:150').posts.map(&:id)).to eq([post.id])
end
it 'can search for terms with dots' do