Commit a0eb43ba authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Improve tests text

parent a5fc5b14
...@@ -51,7 +51,7 @@ describe API::Namespaces do ...@@ -51,7 +51,7 @@ describe API::Namespaces do
end end
context "when authenticated as a regular user" do 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) group1.add_owner(user)
get api("/namespaces", user) get api("/namespaces", user)
...@@ -62,7 +62,7 @@ describe API::Namespaces do ...@@ -62,7 +62,7 @@ describe API::Namespaces do
'parent_id', 'members_count_with_descendants') 'parent_id', 'members_count_with_descendants')
end 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) group1.add_guest(user)
get api("/namespaces", user) get api("/namespaces", user)
......
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