inspec/test/integration/default/controls/os_spec.rb
Christoph Hartmann 47eabbb221 add functional tests for inspec check (#2077)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-08-15 20:41:24 +02:00

13 lines
177 B
Ruby

# encoding: utf-8
family = os[:family]
# use symbol
describe os[:family] do
it { should eq family }
end
# use string
describe os['family'] do
it { should eq family }
end