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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
65a3928b
Commit
65a3928b
authored
Apr 13, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test for 'ldap' provider special case
parent
afa47edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
spec/lib/gitlab/ldap/config_spec.rb
spec/lib/gitlab/ldap/config_spec.rb
+0
-14
No files found.
spec/lib/gitlab/ldap/config_spec.rb
View file @
65a3928b
...
@@ -16,19 +16,5 @@ describe Gitlab::LDAP::Config do
...
@@ -16,19 +16,5 @@ describe Gitlab::LDAP::Config do
it
"raises an error if a unknow provider is used"
do
it
"raises an error if a unknow provider is used"
do
expect
{
Gitlab
::
LDAP
::
Config
.
new
'unknown'
}.
to
raise_error
expect
{
Gitlab
::
LDAP
::
Config
.
new
'unknown'
}.
to
raise_error
end
end
context
"if 'ldap' is the provider name"
do
let
(
:provider
)
{
'ldap'
}
context
"and 'ldap' is not in defined as a provider"
do
before
{
Gitlab
::
LDAP
::
Config
.
stub
(
providers:
%w{ldapmain}
)
}
it
"uses the first provider"
do
# Fetch the provider_name attribute from 'options' so that we know
# that the 'options' Hash is not empty/nil.
expect
(
config
.
options
[
'provider_name'
]).
to
eq
(
'ldapmain'
)
end
end
end
end
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