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
5700ee72
Commit
5700ee72
authored
Feb 24, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "let options"
parent
48e6d2dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
spec/lib/gitlab/ldap/access_spec.rb
spec/lib/gitlab/ldap/access_spec.rb
+2
-3
No files found.
spec/lib/gitlab/ldap/access_spec.rb
View file @
5700ee72
...
@@ -117,8 +117,7 @@ describe Gitlab::LDAP::Access, lib: true do
...
@@ -117,8 +117,7 @@ describe Gitlab::LDAP::Access, lib: true do
end
end
describe
'#update_permissions'
do
describe
'#update_permissions'
do
subject
{
access
.
update_permissions
(
options
)
}
subject
{
access
.
update_permissions
({})
}
let
(
:options
)
{
Hash
.
new
}
it
'does update group permissions with a group base configured'
do
it
'does update group permissions with a group base configured'
do
allow
(
access
).
to
receive_messages
(
group_base:
'my-group-base'
)
allow
(
access
).
to
receive_messages
(
group_base:
'my-group-base'
)
...
@@ -149,7 +148,7 @@ describe Gitlab::LDAP::Access, lib: true do
...
@@ -149,7 +148,7 @@ describe Gitlab::LDAP::Access, lib: true do
end
end
context
'when synchronously updating group permissions'
do
context
'when synchronously updating group permissions'
do
let
(
:options
)
{
{
update_ldap_group_links_synchronously:
true
}
}
subject
{
access
.
update_permissions
(
update_ldap_group_links_synchronously:
true
)
}
it
'updates group permissions directly'
do
it
'updates group permissions directly'
do
allow
(
access
).
to
receive_messages
(
group_base:
'my-group-base'
)
allow
(
access
).
to
receive_messages
(
group_base:
'my-group-base'
)
...
...
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