diff options
Diffstat (limited to 'spec/fast_spec_helper.rb')
-rw-r--r-- | spec/fast_spec_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/fast_spec_helper.rb b/spec/fast_spec_helper.rb index cbab809cddb..2f0bcd318d9 100644 --- a/spec/fast_spec_helper.rb +++ b/spec/fast_spec_helper.rb @@ -1,5 +1,12 @@ # frozen_string_literal: true +# $" is $LOADED_FEATURES, but RuboCop didn't like it +if $".include?(File.expand_path('spec_helper.rb', __dir__)) + # There's no need to load anything here if spec_helper is already loaded + # because spec_helper is more extensive than fast_spec_helper + return +end + require 'bundler/setup' ENV['GITLAB_ENV'] = 'test' |