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
915ac40d
Commit
915ac40d
authored
Sep 27, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add feature spec
parent
cae9e9f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
spec/features/groups/ldap_group_links_spec.rb
spec/features/groups/ldap_group_links_spec.rb
+34
-0
No files found.
spec/features/groups/ldap_group_links_spec.rb
0 → 100644
View file @
915ac40d
require
'spec_helper'
feature
'Edit group settings'
,
:js
do
given
(
:user
)
{
create
(
:user
)
}
given
(
:group
)
{
create
(
:group
,
path:
'foo'
)
}
background
do
group
.
add_owner
(
user
)
sign_in
(
user
)
end
context
'LDAP sync method'
do
before
do
allow
(
Gitlab
.
config
.
ldap
).
to
receive
(
:enabled
).
and_return
(
true
)
visit
group_ldap_group_links_path
(
group
)
end
scenario
'shows the LDAP filter section'
do
choose
(
'sync_method_filter'
)
expect
(
page
).
to
have_content
(
'This query must use valid LDAP Search Filter Syntax'
)
expect
(
page
).
not_to
have_content
(
"Synchronize
#{
group
.
name
}
's members with this LDAP group"
)
end
scenario
'shows the LDAP group section'
do
choose
(
'sync_method_filter'
)
# choose filter first, as group's the default
choose
(
'sync_method_group'
)
expect
(
page
).
to
have_content
(
"Synchronize
#{
group
.
name
}
's members with this LDAP group"
)
expect
(
page
).
not_to
have_content
(
'This query must use valid LDAP Search Filter Syntax'
)
end
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