Skip to content
Snippets Groups Projects
Commit cc4b2151 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu
Browse files

Add :nested_groups metadata to tests using subgroups

parent b1245604
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -490,7 +490,7 @@ describe API::Groups do
expect(json_response.first['visibility']).not_to be_present
end
 
it 'filters the groups projects' do
it "filters the groups projects" do
public_project = create(:project, :public, path: 'test1', group: group1)
 
get api("/groups/#{group1.id}/projects", user1), visibility: 'public'
Loading
Loading
@@ -502,7 +502,7 @@ describe API::Groups do
expect(json_response.first['name']).to eq(public_project.name)
end
 
it 'returns projects excluding shared' do
it "returns projects excluding shared" do
create(:project_group_link, project: create(:project), group: group1)
create(:project_group_link, project: create(:project), group: group1)
create(:project_group_link, project: create(:project), group: group1)
Loading
Loading
@@ -515,7 +515,7 @@ describe API::Groups do
expect(json_response.length).to eq(2)
end
 
it 'returns projects including those in subgroups' do
it "returns projects including those in subgroups", :nested_groups do
subgroup = create(:group, parent: group1)
create(:project, group: subgroup)
create(:project, group: subgroup)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment