inspec/test/unit/mock/profiles/custom-resource/libraries/batsignal.rb
devoptimist 94d80f6c8f Decoupling test profiles from example profiles
Signed-off-by: devoptimist <sbrown@chef.io>
2019-03-14 00:32:13 +00:00

20 lines
343 B
Ruby

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