Follow Rubocop for scripts/prune-old-flaky-specs

This commit is contained in:
Lin Jen-Shin 2018-06-01 14:13:47 +08:00
parent 1e2b6cf514
commit 7083b355a6
1 changed files with 3 additions and 2 deletions

View File

@ -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'