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
952d64f8
Commit
952d64f8
authored
Mar 28, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EE] Reduce the diff with CE in spec/helpers/projects_helper_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
1f22f70b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
ee/spec/helpers/projects_helper_spec.rb
ee/spec/helpers/projects_helper_spec.rb
+11
-0
spec/helpers/projects_helper_spec.rb
spec/helpers/projects_helper_spec.rb
+2
-9
No files found.
ee/spec/helpers/
ee/
projects_helper_spec.rb
→
ee/spec/helpers/projects_helper_spec.rb
View file @
952d64f8
...
...
@@ -32,4 +32,15 @@ describe ProjectsHelper do
end
end
end
describe
'default_clone_protocol'
do
context
'when gitlab.config.kerberos is enabled and user is logged in'
do
it
'returns krb5 as default protocol'
do
allow
(
Gitlab
.
config
.
kerberos
).
to
receive
(
:enabled
).
and_return
(
true
)
allow
(
helper
).
to
receive
(
:current_user
).
and_return
(
double
)
expect
(
helper
.
send
(
:default_clone_protocol
)).
to
eq
(
'krb5'
)
end
end
end
end
spec/helpers/projects_helper_spec.rb
View file @
952d64f8
# frozen_string_literal: true
require
'spec_helper'
describe
ProjectsHelper
do
...
...
@@ -350,15 +352,6 @@ describe ProjectsHelper do
expect
(
helper
.
send
(
:default_clone_protocol
)).
to
eq
(
'https'
)
end
end
context
'when gitlab.config.kerberos is enabled and user is logged in'
do
it
'returns krb5 as default protocol'
do
allow
(
Gitlab
.
config
.
kerberos
).
to
receive
(
:enabled
).
and_return
(
true
)
allow
(
helper
).
to
receive
(
:current_user
).
and_return
(
double
)
expect
(
helper
.
send
(
:default_clone_protocol
)).
to
eq
(
'krb5'
)
end
end
end
describe
'#last_push_event'
do
...
...
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