2
0
Fork 0
mirror of https://github.com/inspec/inspec synced 2024-12-27 05:23:16 +00:00
inspec/test/fixtures/profiles/old-examples/custom-resource/libraries/batsignal.rb
Ryan Davis db8e6e7415 Moved test/unit/mock/* to test/fixtures
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 16:29:03 -08:00

20 lines
343 B
Ruby

class Batsignal < Inspec.resource(1)
name 'batsignal'
example "
describe batsignal do
its('number_of_sightings)') { should eq '1' }
end
"
def number_of_sightings
local_command_call
end
private
def local_command_call
# call out to a core resource
inspec.command('echo 1').stdout.to_i
end
end