Skip to content

Commit 7c90896

Browse files
authored
Land rapid7#19194, Fix failing test with Ruby 3.4.0
2 parents 422acd3 + 0695a6f commit 7c90896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/acceptance/meterpreter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def initialize(path)
163163
# @param [String] path The file path to read the content of
164164
# @return [String] The file contents if found
165165
def get_file_attachment_contents(path)
166-
return 'none resent' unless File.exists?(path)
166+
return 'none resent' unless File.exist?(path)
167167

168168
content = File.binread(path)
169169
content.blank? ? 'file created - but empty' : content

0 commit comments

Comments
 (0)