FIX: allow searching in PMs when "search this topic" is selected

This commit is contained in:
Sam
2015-02-19 12:56:49 +11:00
parent 67f404d281
commit 451788b95d
2 changed files with 11 additions and 2 deletions

View File

@ -126,6 +126,13 @@ describe Search do
results.posts.length.should == 1
results = Search.execute('mars',
search_context: topic,
guardian: Guardian.new(reply.user))
results.posts.length.should == 1
# does not leak out
results = Search.execute('mars',
type_filter: 'private_messages',