summaryrefslogtreecommitdiff
path: root/spec/support/stub_env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/stub_env.rb')
-rw-r--r--spec/support/stub_env.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/stub_env.rb b/spec/support/stub_env.rb
index f621463e621..36b90fc68d6 100644
--- a/spec/support/stub_env.rb
+++ b/spec/support/stub_env.rb
@@ -1,9 +1,8 @@
# Inspired by https://github.com/ljkbennett/stub_env/blob/master/lib/stub_env/helpers.rb
module StubENV
- include Gitlab::CurrentSettings
-
def stub_env(key_or_hash, value = nil)
init_stub unless env_stubbed?
+
if key_or_hash.is_a? Hash
key_or_hash.each { |k, v| add_stubbed_value(k, v) }
else