Sha256: 070e04f0338344ecb80a3215dbfd8624c5b433a3fddc471894c8f3b935367274
Contents?: true
Size: 667 Bytes
Versions: 21
Compression:
Stored size: 667 Bytes
Contents
shared_examples_for 'support iptables have_rule matcher' do |rule| describe 'have_rule' do describe iptables do it { should have_rule rule } end describe iptables do it { should_not have_rule 'invalid-rule' } end end end shared_examples_for 'support iptables have_rule with_table and with_chain matcher' do |rule, table, chain| describe 'have_rule with_table and with_chain' do describe iptables do it { should have_iptables_rule(rule).with_table(table).with_chain(chain) } end describe iptables do it { should_not have_iptables_rule('invalid-rule').with_table(table).with_chain(chain) } end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.4.3 | spec/support/shared_iptables_examples.rb |