Commit fdb1581b authored by Thong Kuah's avatar Thong Kuah

Assert all_projects work for child groups

parent b5714f0a
...@@ -572,6 +572,7 @@ describe Namespace do ...@@ -572,6 +572,7 @@ describe Namespace do
let!(:project2) { create(:project_empty_repo, namespace: child) } let!(:project2) { create(:project_empty_repo, namespace: child) }
it { expect(group.all_projects.to_a).to match_array([project2, project1]) } it { expect(group.all_projects.to_a).to match_array([project2, project1]) }
it { expect(child.all_projects.to_a).to match_array([project2]) }
end end
describe '#all_pipelines' do describe '#all_pipelines' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment