Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/prune-old-flaky-specs5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/prune-old-flaky-specs b/scripts/prune-old-flaky-specs
index 59f97e833b5..a00a334fd6e 100755
--- a/scripts/prune-old-flaky-specs
+++ b/scripts/prune-old-flaky-specs
@@ -5,8 +5,9 @@
# gem manually on the CI
require 'rubygems'
-singleton_class.__send__(:alias_method, :require_dependency, :require)
-$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
+# In newer Ruby, alias_method is not private then we don't need __send__
+singleton_class.__send__(:alias_method, :require_dependency, :require) # rubocop:disable GitlabSecurity/PublicSend
+$:.unshift(File.expand_path('../lib', __dir__))
require 'rspec_flaky/report'