diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-06-01 09:13:47 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-06-01 09:30:10 +0300 |
commit | 7083b355a693e2de91aa7bcd7099c1a1690bc756 (patch) | |
tree | e8840e23efdc4a3766d595f01c343e0ad0e6ba6f /scripts/prune-old-flaky-specs | |
parent | 1e2b6cf514bcefd21520fef63b3fee5a29d334cd (diff) |
Follow Rubocop for scripts/prune-old-flaky-specs
Diffstat (limited to 'scripts/prune-old-flaky-specs')
-rwxr-xr-x | scripts/prune-old-flaky-specs | 5 |
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' |