mirror of
https://github.com/inspec/inspec
synced 2024-11-27 23:20:33 +00:00
a5309ea392
Signed-off-by: Ryan Davis <zenspider@chef.io>
20 lines
361 B
Ruby
20 lines
361 B
Ruby
class Gordon < Inspec.resource(1)
|
|
name "gordon"
|
|
|
|
example "
|
|
describe gordon do
|
|
its('crime_rate') { should be < 2 }
|
|
it { should have_a_fabulous_mustache }
|
|
end
|
|
"
|
|
|
|
def crime_rate
|
|
# call out ot another custom resource
|
|
inspec.batsignal.number_of_sightings
|
|
end
|
|
|
|
def has_a_fabulous_mustache?
|
|
# always true
|
|
true
|
|
end
|
|
end
|