summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-05-20 19:44:49 -0500
committerBrett Walker <bwalker@gitlab.com>2019-05-20 19:44:49 -0500
commite082090e1f86366c5a18553a36238b1c73dd2e6b (patch)
tree7ff7e5558489dc63f34ded7440b3729a24db0514
parent01a28eada1215fe9d97b16bb405a1f1eb52f4ee3 (diff)
downloadgitlab-ce-e082090e1f86366c5a18553a36238b1c73dd2e6b.tar.gz
Remove 'already initialized constant' warningsbw-remove-constant-warnings
-rw-r--r--spec/support/helpers/stub_configuration.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/helpers/stub_configuration.rb b/spec/support/helpers/stub_configuration.rb
index 3e507fb133e..f6c613ad5aa 100644
--- a/spec/support/helpers/stub_configuration.rb
+++ b/spec/support/helpers/stub_configuration.rb
@@ -2,7 +2,8 @@ require 'active_support/core_ext/hash/transform_values'
require 'active_support/hash_with_indifferent_access'
require 'active_support/dependencies'
-require_dependency 'gitlab'
+# check gets rid of already initialized constant warnings when using spring
+require_dependency 'gitlab' unless defined?(Gitlab)
module StubConfiguration
def stub_application_setting(messages)