inspec/test/integration/find_files/libraries/find_files.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

23 lines
465 B
Ruby

# Custom resource for Utils::FindFIles
class TestFindFiles < Inspec.resource(1)
name "test_find_files"
desc "
Resource used for testing the funcitonality of Utils::FindFiles
"
example "
describe test_find_files('/some/filepath') do
its('results') { should include 'somefile.conf' }
end
"
require "inspec/utils/find_files"
include FindFiles
attr_reader :results
def initialize(path)
@results = find_files(path)
end
end