From e082090e1f86366c5a18553a36238b1c73dd2e6b Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Mon, 20 May 2019 19:44:49 -0500 Subject: Remove 'already initialized constant' warnings --- spec/support/helpers/stub_configuration.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1