summaryrefslogtreecommitdiff
path: root/spec/support/helpers/stub_configuration.rb
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-03-19 11:16:21 +0000
committerNick Thomas <nick@gitlab.com>2019-03-19 11:16:21 +0000
commit26dadbc9c4ed94d1bc3c9eabf958edf6597e12e4 (patch)
treea31f376d932c3d9704ccd1c6c06a6108a3b5b11e /spec/support/helpers/stub_configuration.rb
parent7fb9dff43dcf56472e22be7a26805ee5fa339e8b (diff)
downloadgitlab-ce-26dadbc9c4ed94d1bc3c9eabf958edf6597e12e4.tar.gz
Integrate Gitlab::Keys with Gitlab::Shell
In this commit, some methods that aren't being used are removed from `Gitlab::Shell`. They are the ff: - `#remove_keys_not_found_in_db` - `#batch_read_key_ids` - `#list_key_ids` The corresponding methods in `Gitlab::Keys` have been removed as well.
Diffstat (limited to 'spec/support/helpers/stub_configuration.rb')
-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 ff21bbe28ca..cfa9151b2d7 100644
--- a/spec/support/helpers/stub_configuration.rb
+++ b/spec/support/helpers/stub_configuration.rb
@@ -84,6 +84,10 @@ module StubConfiguration
allow(Gitlab.config.kerberos).to receive_messages(to_settings(messages))
end
+ def stub_gitlab_shell_setting(messages)
+ allow(Gitlab.config.gitlab_shell).to receive_messages(to_settings(messages))
+ end
+
private
# Modifies stubbed messages to also stub possible predicate versions