summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-01 14:13:47 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-06-01 14:30:10 +0800
commit7083b355a693e2de91aa7bcd7099c1a1690bc756 (patch)
treee8840e23efdc4a3766d595f01c343e0ad0e6ba6f /scripts
parent1e2b6cf514bcefd21520fef63b3fee5a29d334cd (diff)
downloadgitlab-ce-7083b355a693e2de91aa7bcd7099c1a1690bc756.tar.gz
Follow Rubocop for scripts/prune-old-flaky-specs
Diffstat (limited to 'scripts')
-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'