mirror of
https://github.com/inspec/inspec
synced 2024-12-24 03:53:15 +00:00
9e1a380f0a
Signed-off-by: Miah Johnson <miah@chia-pet.org>
17 lines
268 B
Ruby
17 lines
268 B
Ruby
class Example < Inspec.resource(1)
|
|
name "example"
|
|
example "
|
|
describe example do
|
|
its('crime_rate') { should be < 2 }
|
|
it { should have_a_fabulous_mustache }
|
|
end
|
|
"
|
|
|
|
def crime_rate
|
|
1
|
|
end
|
|
|
|
def has_a_fabulous_mustache?
|
|
true
|
|
end
|
|
end
|