From 9b84cd832c5cebc7dbd8c120e27b6f0802058a3c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 11 May 2017 15:06:30 -0400 Subject: [PATCH] confirm in:private works for non staff --- spec/components/search_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/components/search_spec.rb b/spec/components/search_spec.rb index 892e5b3dd96..386af7b1671 100644 --- a/spec/components/search_spec.rb +++ b/spec/components/search_spec.rb @@ -198,6 +198,12 @@ describe Search do expect(results.posts.length).to eq(1) + results = Search.execute('mars in:private', + search_context: post.user, + guardian: Guardian.new(post.user)) + + expect(results.posts.length).to eq(1) + end end