summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-06-13 19:13:20 +0000
committerStan Hu <stanhu@gmail.com>2018-06-13 19:13:20 +0000
commit7cf571e95550b3c14eb971ea165a8930b809e1d7 (patch)
treefe2683de4f56d65bc924db605994c9219670f8f0
parente76b176da482858accf1985a2a1d736be81aedfe (diff)
parentc61392b4e4493a5ca3ab2472d1ea8a385d0aa4de (diff)
downloadgitlab-ce-7cf571e95550b3c14eb971ea165a8930b809e1d7.tar.gz
Merge branch 'unify-parallel_importer' into 'master'
Bring changes from EE for parallel_importer.rb See merge request gitlab-org/gitlab-ce!19779
-rw-r--r--lib/gitlab/github_import/parallel_importer.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/parallel_importer.rb b/lib/gitlab/github_import/parallel_importer.rb
index b02b123c98e..a77ac1e4fa6 100644
--- a/lib/gitlab/github_import/parallel_importer.rb
+++ b/lib/gitlab/github_import/parallel_importer.rb
@@ -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