Bring changes from EE for parallel_importer.rb

This commit is contained in:
Lin Jen-Shin 2018-06-14 02:05:01 +08:00
parent cc1b03545c
commit c61392b4e4
1 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,15 @@ module Gitlab
true
end
# This is a workaround for a Ruby 2.3.7 bug. rspec-mocks cannot restore
# the visibility of prepended modules. See
# https://github.com/rspec/rspec-mocks/issues/1231 for more details.
if Rails.env.test?
def self.requires_ci_cd_setup?
raise NotImplementedError
end
end
def initialize(project)
@project = project
end