We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262feb7 commit 9b8778aCopy full SHA for 9b8778a
spec/spec_helper.rb
@@ -1,3 +1,7 @@
1
+# frozen_string_literal: true
2
+
3
+require_relative 'support/file_exists_patch'
4
5
if ENV['COVERAGE']
6
require 'coveralls'
7
require 'codeclimate-test-reporter'
spec/support/file_exists_patch.rb
@@ -0,0 +1,9 @@
+# Monkey patch to add back File.exists? for compatibility with the files gem
+# This is needed because File.exists? was removed in Ruby 3.2
+class File
+ class << self
+ alias exists? exist?
8
+ end
9
+end
0 commit comments