2
0
Fork 0
mirror of https://github.com/inspec/inspec synced 2024-12-18 00:53:22 +00:00
inspec/test/integration/default/controls/os_spec.rb
Christoph Hartmann 47eabbb221 add functional tests for inspec check ()
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