1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Description: replace deprecated File::exists? with File::exist?
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2023-11-18
--- a/spec/compiler/circular_compilation_spec.rb
+++ b/spec/compiler/circular_compilation_spec.rb
@@ -2,7 +2,7 @@
BENCHMARK = false
METAGRAMMAR_PATH = ([ File.expand_path('../../../lib/treetop/compiler/metagrammar.treetop', __FILE__) ] +
- $:.map { |d| d + '/treetop/compiler/metagrammar.treetop' }).select { |f| File::exists?(f) }.first
+ $:.map { |d| d + '/treetop/compiler/metagrammar.treetop' }).select { |f| File::exist?(f) }.first
module CircularCompilationSpec
|