You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default Serverspec and RSpec do not support OR tests. InSpec added this feature:
describe.one do
describe ssh_config do
its('Protocol') { should eq('3') }
end
describe ssh_config do
its('Protocol') { should eq('2') }
end
end
That allows you to write a control and test for a or b
control 'or-test' do
impact 1.0
title 'This is a OR test'
describe.one do
describe ssh_config do
its('Protocol') { should eq('3') }
end
describe ssh_config do
its('Protocol') { should eq('2') }
end
end
end
The text was updated successfully, but these errors were encountered:
Description
Default Serverspec and RSpec do not support OR tests. InSpec added this feature:
That allows you to write a control and test for a or b
The text was updated successfully, but these errors were encountered: