diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-06-28 17:55:50 -0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-06-28 17:55:50 -0300 |
commit | a0c044c114d803f0d89260804131afa2ed7d177b (patch) | |
tree | f35fb50d476f52f059b4c8e5ba9357f016967454 | |
parent | bd4c2847f4a60b392902aa1866c1ccc87cfacbf6 (diff) | |
download | gitlab-ce-a0c044c114d803f0d89260804131afa2ed7d177b.tar.gz |
Improve tests text
-rw-r--r-- | doc/api/namespaces.md | 1 | ||||
-rw-r--r-- | spec/requests/api/namespaces_spec.rb | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/doc/api/namespaces.md b/doc/api/namespaces.md index 8b5afe29040..8133251dffe 100644 --- a/doc/api/namespaces.md +++ b/doc/api/namespaces.md @@ -39,7 +39,6 @@ Example response: "full_path": "group1", "parent_id": "null", "members_count_with_descendants": 2 - }, { "id": 3, diff --git a/spec/requests/api/namespaces_spec.rb b/spec/requests/api/namespaces_spec.rb index fdb7ebb6482..26cf653ca8e 100644 --- a/spec/requests/api/namespaces_spec.rb +++ b/spec/requests/api/namespaces_spec.rb @@ -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) @@ -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) |