summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorReuben Pereira <rpereira@gitlab.com>2019-08-23 22:27:41 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-08-23 22:27:41 +0000
commit2515c0cd44db9e14ebea9a9218b05853b9afcaad (patch)
treed5f0ba47d3aacba28757b92a94cd762cf639f3ae /spec/support
parenta93612aa5fab7d70f0b6165856402ac53ab18faf (diff)
downloadgitlab-ce-2515c0cd44db9e14ebea9a9218b05853b9afcaad.tar.gz
Add a link to docs in project description
Add to the service and migration both.
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/helpers/stub_configuration.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/helpers/stub_configuration.rb b/spec/support/helpers/stub_configuration.rb
index c8b2bf040e6..dec7898d8d2 100644
--- a/spec/support/helpers/stub_configuration.rb
+++ b/spec/support/helpers/stub_configuration.rb
@@ -30,6 +30,10 @@ module StubConfiguration
allow(Gitlab.config.gitlab).to receive_messages(to_settings(messages))
end
+ def stub_config(messages)
+ allow(Gitlab.config).to receive_messages(to_settings(messages))
+ 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)