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
e378646a
Commit
e378646a
authored
Feb 24, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also spec what should _not_ happen
parent
63dc22e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
spec/lib/gitlab/ldap/access_spec.rb
spec/lib/gitlab/ldap/access_spec.rb
+2
-0
No files found.
spec/lib/gitlab/ldap/access_spec.rb
View file @
e378646a
...
...
@@ -121,6 +121,7 @@ describe Gitlab::LDAP::Access, lib: true do
it
'does update group permissions with a group base configured'
do
allow
(
access
).
to
receive_messages
(
group_base:
'my-group-base'
)
expect
(
access
).
not_to
receive
(
:update_ldap_group_links
)
expect
(
LdapGroupLinksWorker
).
to
receive
(
:perform_async
).
with
(
user
.
id
)
subject
...
...
@@ -128,6 +129,7 @@ describe Gitlab::LDAP::Access, lib: true do
it
'does not update group permissions without a group base configured'
do
allow
(
access
).
to
receive_messages
(
group_base:
''
)
expect
(
access
).
not_to
receive
(
:update_ldap_group_links
)
expect
(
LdapGroupLinksWorker
).
not_to
receive
(
:perform_async
)
subject
...
...
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