Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab FOSS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab FOSS
Commits
f0afb806
There was a problem fetching the pipeline summary.
Commit
f0afb806
authored
8 years ago
by
Bryce Johnson
Browse files
Options
Downloads
Patches
Plain Diff
Add spec for testing ldap tabs.
parent
67ca15bb
No related branches found
No related tags found
1 merge request
!7351
WIP: Add spec for testing ldap tabs.
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/features/login_spec.rb
+19
-0
19 additions, 0 deletions
spec/features/login_spec.rb
with
19 additions
and
0 deletions
spec/features/login_spec.rb
+
19
−
0
View file @
f0afb806
...
...
@@ -257,6 +257,25 @@ def stub_omniauth_config(messages)
end
end
context
'when ldap is enabled'
,
js:
true
do
before
do
stub_application_setting
(
signup_enabled:
true
)
# Mock enable LDAP
@ldap_servers
=
[{
provider_name:
'ldapmain'
,
label:
'ldapmain'
}]
allow
(
page
).
to
receive
(
:form_based_providers
).
and_return
([
:ldapmain
])
allow
(
page
).
to
receive
(
:ldap_enabled
).
and_return
(
true
)
allow
(
page
).
to
receive
(
:ldap_servers
).
and_return
(
@ldap_servers
)
allow
(
Gitlab
.
config
.
ldap
).
to
receive
(
:enabled
).
and_return
(
true
)
allow
(
Gitlab
::
LDAP
::
Config
).
to
receive
(
:servers
).
and_return
(
@ldap_servers
)
visit
new_user_session_path
end
it
'correctly renders tabs and panes'
do
ensure_tab_pane_correctness
(
false
)
end
end
def
ensure_tab_pane_correctness
(
visit_path
=
true
)
if
visit_path
visit
new_user_session_path
...
...
This diff is collapsed.
Click to expand it.
Bryce Johnson
@brycepj
Mentioned in merge request
!7274 (merged)
·
8 years ago
Mentioned in merge request
!7274 (merged)
Mentioned in merge request !7274
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment