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
13e35f25
Commit
13e35f25
authored
May 19, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix UsersFinder#by_non_ldap
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
93138913
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/finders/users_finder.rb
app/finders/users_finder.rb
+1
-1
spec/finders/users_finder_spec.rb
spec/finders/users_finder_spec.rb
+1
-1
No files found.
app/finders/users_finder.rb
View file @
13e35f25
...
...
@@ -30,7 +30,7 @@ class UsersFinder
users
=
by_active
(
users
)
users
=
by_external_identity
(
users
)
users
=
by_external
(
users
)
users
=
by_ldap
(
users
)
users
=
by_
non_
ldap
(
users
)
users
end
...
...
spec/finders/users_finder_spec.rb
View file @
13e35f25
...
...
@@ -58,7 +58,7 @@ describe UsersFinder do
it
'returns only non-ldap users with skip_ldap: true'
do
users
=
described_class
.
new
(
user
,
skip_ldap:
true
).
execute
expect
(
users
).
not_
to
contain_exactly
(
user
,
user1
,
user2
,
omniauth_user
)
expect
(
users
).
to
contain_exactly
(
user
,
user1
,
user2
,
omniauth_user
)
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