summaryrefslogtreecommitdiff
path: root/spec/finders
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2019-02-25 12:42:34 -0800
committerMichael Kozono <mkozono@gmail.com>2019-02-25 12:42:34 -0800
commite95b88a06d673ff95792d5c7d3934c88051691d9 (patch)
treec61f4999efb0100b9df7d2c9ece7002903235ac5 /spec/finders
parent0b0a04fdf7ba31975407daa978f6f8f7c2f8bb3e (diff)
downloadgitlab-ce-e95b88a06d673ff95792d5c7d3934c88051691d9.tar.gz
Revert "Merge branch 'filter-confidential-issues' into 'master'"
This reverts commit d133bf84c668df3dfc9938bb04150754cb873c8b, reversing changes made to 7981c0292b07a0138b096fa082341fcb13e9ce2b.
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/issues_finder_spec.rb28
1 files changed, 1 insertions, 27 deletions
diff --git a/spec/finders/issues_finder_spec.rb b/spec/finders/issues_finder_spec.rb
index 47e2548c3d6..fe8000e419b 100644
--- a/spec/finders/issues_finder_spec.rb
+++ b/spec/finders/issues_finder_spec.rb
@@ -490,32 +490,6 @@ describe IssuesFinder do
end
end
- context 'filtering by confidential' do
- set(:confidential_issue) { create(:issue, project: project1, confidential: true) }
-
- context 'no filtering' do
- it 'returns all issues' do
- expect(issues).to contain_exactly(issue1, issue2, issue3, issue4, confidential_issue)
- end
- end
-
- context 'user filters confidential issues' do
- let(:params) { { confidential: true } }
-
- it 'returns only confdential issues' do
- expect(issues).to contain_exactly(confidential_issue)
- end
- end
-
- context 'user filters only public issues' do
- let(:params) { { confidential: false } }
-
- it 'returns only confdential issues' do
- expect(issues).to contain_exactly(issue1, issue2, issue3, issue4)
- end
- end
- end
-
context 'when the user is unauthorized' do
let(:search_user) { nil }
@@ -582,7 +556,7 @@ describe IssuesFinder do
it 'returns the number of rows for the default state' do
finder = described_class.new(user)
- expect(finder.row_count).to eq(5)
+ expect(finder.row_count).to eq(4)
end
it 'returns the number of rows for a given state' do