Files
beefproject-beef/spec/beef/filesystem_checks_spec.rb
2026-01-30 15:38:03 +10:00

35 lines
669 B
Ruby

#
# Copyright (c) 2006-2026 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - https://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
RSpec.describe 'BeEF Filesystem' do
def file_test(file)
expect(File.file?(file)).to be(true)
expect(File.zero?(file)).to be(false)
end
it 'required files' do
files = [
'beef',
'config.yaml',
'install'
]
files.each do |f|
file_test(f)
end
end
it 'executable directories' do
dirs = [
'core',
'modules',
'extensions'
]
dirs.each do |d|
expect(File.executable?(d)).to be(true)
end
end
end