Sha256: 33a3eadaca706f03f60e1fac5c218ac3ac20f50c311e10b72fbdeaa9fc413814

Contents?: true

Size: 649 Bytes

Versions: 16

Compression:

Stored size: 649 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_rule(rule).with_table(table).with_chain(chain) }
    end

    describe iptables do
      it { should_not have_rule('invalid-rule').with_table(table).with_chain(chain) }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
serverspec-0.6.16 spec/support/shared_iptables_examples.rb
serverspec-0.6.15 spec/support/shared_iptables_examples.rb
serverspec-0.6.13 spec/support/shared_iptables_examples.rb
serverspec-0.6.12 spec/support/shared_iptables_examples.rb
serverspec-0.6.11 spec/support/shared_iptables_examples.rb
serverspec-0.6.10 spec/support/shared_iptables_examples.rb
serverspec-0.6.9 spec/support/shared_iptables_examples.rb
serverspec-0.6.8 spec/support/shared_iptables_examples.rb
serverspec-0.6.7 spec/support/shared_iptables_examples.rb
serverspec-0.6.6 spec/support/shared_iptables_examples.rb
serverspec-0.6.5 spec/support/shared_iptables_examples.rb
serverspec-0.6.4 spec/support/shared_iptables_examples.rb
serverspec-0.6.3 spec/support/shared_iptables_examples.rb
serverspec-0.6.2 spec/support/shared_iptables_examples.rb
serverspec-0.6.1 spec/support/shared_iptables_examples.rb
serverspec-0.6.0 spec/support/shared_iptables_examples.rb