Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1807368c
Commit
1807368c
authored
Aug 15, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update api/groups spec
parent
27bebd5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
spec/requests/api/groups_spec.rb
spec/requests/api/groups_spec.rb
+6
-1
No files found.
spec/requests/api/groups_spec.rb
View file @
1807368c
...
...
@@ -6,12 +6,13 @@ describe API::API, api: true do
let
(
:user1
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:admin
)
{
create
(
:admin
)
}
let!
(
:group1
)
{
create
(
:group
,
ldap_cn:
"ldap-group"
,
ldap_access:
Gitlab
::
Access
::
MASTER
)
}
let!
(
:group1
)
{
create
(
:group
)
}
let!
(
:group2
)
{
create
(
:group
)
}
before
do
group1
.
add_owner
(
user1
)
group2
.
add_owner
(
user2
)
group1
.
ldap_group_links
.
create
cn:
'ldap-group'
,
group_access:
Gitlab
::
Access
::
MASTER
end
describe
"GET /groups"
do
...
...
@@ -31,6 +32,10 @@ describe API::API, api: true do
json_response
.
first
[
'name'
].
should
==
group1
.
name
json_response
.
first
[
'ldap_cn'
].
should
==
group1
.
ldap_cn
json_response
.
first
[
'ldap_access'
].
should
==
group1
.
ldap_access
ldap_group_link
=
json_response
.
first
[
'ldap_group_links'
].
first
ldap_group_link
[
'cn'
].
should
==
group1
.
ldap_cn
ldap_group_link
[
'group_access'
].
should
==
group1
.
ldap_access
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment