rubygem-rspec2-core/Fix-rubygem-expression_parser-test-failure.patch
starlet-dx 288b9b90dd Fix rubygem-expression_parser test failure caused by ruby upgrade to 3.2.2
(cherry picked from commit 0703ad97c37ae2ecbc14d4dd531c5b2641da10d5)
2023-08-11 16:55:02 +08:00

13 lines
467 B
Diff

diff -Naur a/lib/rspec/core/ruby_project.rb b/lib/rspec/core/ruby_project.rb
--- a/lib/rspec/core/ruby_project.rb 2023-08-11 16:28:19.863503691 +0800
+++ b/lib/rspec/core/ruby_project.rb 2023-08-11 16:29:29.028511667 +0800
@@ -24,7 +24,7 @@
end
def find_first_parent_containing(dir)
- ascend_until {|path| File.exists?(File.join(path, dir))}
+ ascend_until {|path| File.exist?(File.join(path, dir))}
end
def ascend_until