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:
authorThong Kuah <tkuah@gitlab.com>2018-11-23 06:19:53 +0300
committerThong Kuah <tkuah@gitlab.com>2018-12-05 00:16:44 +0300
commite9eccee9ae7be13f73b61f24d4cc6b52af997464 (patch)
treeef02cf71e138cc28ea68b6bd77320f3ba1429556
parent5bb2814ae6eb45463bb1fa4c5ed5fdd376afa2ca (diff)
Assert all_projects work for child groups
-rw-r--r--spec/models/namespace_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb
index 2db42fe802a..84930d11a06 100644
--- a/spec/models/namespace_spec.rb
+++ b/spec/models/namespace_spec.rb
@@ -560,6 +560,7 @@ describe Namespace do
let!(:project2) { create(:project_empty_repo, namespace: child) }
it { expect(group.all_projects.to_a).to match_array([project2, project1]) }
+ it { expect(child.all_projects.to_a).to match_array([project2]) }
end
describe '#all_pipelines' do