diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-11-23 16:19:53 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-12-05 10:16:44 +1300 |
commit | e9eccee9ae7be13f73b61f24d4cc6b52af997464 (patch) | |
tree | ef02cf71e138cc28ea68b6bd77320f3ba1429556 | |
parent | 5bb2814ae6eb45463bb1fa4c5ed5fdd376afa2ca (diff) | |
download | gitlab-ce-e9eccee9ae7be13f73b61f24d4cc6b52af997464.tar.gz |
Assert all_projects work for child groups
-rw-r--r-- | spec/models/namespace_spec.rb | 1 |
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 |