mirror of
https://github.com/inspec/inspec
synced 2024-12-20 10:03:28 +00:00
20 lines
415 B
Ruby
20 lines
415 B
Ruby
|
# 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
|