Skip to content
Snippets Groups Projects
Commit a0c044c1 authored by Oswaldo Ferreir's avatar Oswaldo Ferreir
Browse files

Improve tests text

parent bd4c2847
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -39,7 +39,6 @@ Example response:
"full_path": "group1",
"parent_id": "null",
"members_count_with_descendants": 2
},
{
"id": 3,
Loading
Loading
Loading
Loading
@@ -51,7 +51,7 @@ describe API::Namespaces do
end
 
context "when authenticated as a regular user" do
it "returns members_count_with_descendants if user can admin group" do
it "returns correct attributes when user can admin group" do
group1.add_owner(user)
 
get api("/namespaces", user)
Loading
Loading
@@ -62,7 +62,7 @@ describe API::Namespaces do
'parent_id', 'members_count_with_descendants')
end
 
it "does not returns members_count_with_descendants if user cannot admin group" do
it "returns correct attributes when user cannot admin group" do
group1.add_guest(user)
 
get api("/namespaces", user)
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