inspec/test/integration/default/controls/matcher_test.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

22 lines
473 B
Ruby

# encoding: utf-8
# author: Rony Xavier, rx294@gmail.com
# matcher be_in test
INSTALLED_MODULES = ['module1', 'module2', 'module3', 'module4', 'module5']
describe 'module1' do
it { should be_in INSTALLED_MODULES}
end
describe ['module1', 'module2', 'module3'] do
it { should be_in INSTALLED_MODULES}
end
describe 'badmodule' do
it { should_not be_in INSTALLED_MODULES}
end
describe ['badmodule1', 'badmodule2'] do
it { should_not be_in INSTALLED_MODULES}
end