Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/finders/group_projects_finder_spec.rb')
-rw-r--r--spec/finders/group_projects_finder_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/finders/group_projects_finder_spec.rb b/spec/finders/group_projects_finder_spec.rb
index 4189be94cc1..87e579dbeec 100644
--- a/spec/finders/group_projects_finder_spec.rb
+++ b/spec/finders/group_projects_finder_spec.rb
@@ -87,6 +87,16 @@ RSpec.describe GroupProjectsFinder do
end
end
+ context "owned" do
+ before do
+ root_group.add_owner(current_user)
+ end
+
+ let(:params) { { owned: true } }
+
+ it { is_expected.to match_array([private_project, public_project]) }
+ end
+
context "all" do
context 'with subgroups projects' do
before do