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
Léo-Paul Géneau
gitlab-ce
Commits
d4f29787
Commit
d4f29787
authored
Dec 03, 2018
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport stub_default_url_options from EE
Used in
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5782
parent
8cd5004b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
spec/support/helpers/stub_configuration.rb
spec/support/helpers/stub_configuration.rb
+5
-0
No files found.
spec/support/helpers/stub_configuration.rb
View file @
d4f29787
...
@@ -27,6 +27,11 @@ module StubConfiguration
...
@@ -27,6 +27,11 @@ module StubConfiguration
allow
(
Gitlab
.
config
.
gitlab
).
to
receive_messages
(
to_settings
(
messages
))
allow
(
Gitlab
.
config
.
gitlab
).
to
receive_messages
(
to_settings
(
messages
))
end
end
def
stub_default_url_options
(
host:
"localhost"
,
protocol:
"http"
)
url_options
=
{
host:
host
,
protocol:
protocol
}
allow
(
Rails
.
application
.
routes
).
to
receive
(
:default_url_options
).
and_return
(
url_options
)
end
def
stub_gravatar_setting
(
messages
)
def
stub_gravatar_setting
(
messages
)
allow
(
Gitlab
.
config
.
gravatar
).
to
receive_messages
(
to_settings
(
messages
))
allow
(
Gitlab
.
config
.
gravatar
).
to
receive_messages
(
to_settings
(
messages
))
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