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 0c5a021 commit 0695a6fCopy full SHA for 0695a6f
spec/acceptance/meterpreter_spec.rb
@@ -163,7 +163,7 @@ def initialize(path)
163
# @param [String] path The file path to read the content of
164
# @return [String] The file contents if found
165
def get_file_attachment_contents(path)
166
- return 'none resent' unless File.exists?(path)
+ return 'none resent' unless File.exist?(path)
167
168
content = File.binread(path)
169
content.blank? ? 'file created - but empty' : content
0 commit comments