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.5.8 spec/support/shared_iptables_examples.rb
serverspec-0.5.7 spec/support/shared_iptables_examples.rb
serverspec-0.5.6 spec/support/shared_iptables_examples.rb
serverspec-0.5.5 spec/support/shared_iptables_examples.rb
serverspec-0.5.4 spec/support/shared_iptables_examples.rb
serverspec-0.5.3 spec/support/shared_iptables_examples.rb
serverspec-0.5.2 spec/support/shared_iptables_examples.rb
serverspec-0.5.1 spec/support/shared_iptables_examples.rb
serverspec-0.5.0 spec/support/shared_iptables_examples.rb
serverspec-0.4.14 spec/support/shared_iptables_examples.rb
serverspec-0.4.13 spec/support/shared_iptables_examples.rb
serverspec-0.4.12 spec/support/shared_iptables_examples.rb
serverspec-0.4.11 spec/support/shared_iptables_examples.rb
serverspec-0.4.10 spec/support/shared_iptables_examples.rb
serverspec-0.4.9 spec/support/shared_iptables_examples.rb
serverspec-0.4.8 spec/support/shared_iptables_examples.rb
serverspec-0.4.7 spec/support/shared_iptables_examples.rb
serverspec-0.4.6 spec/support/shared_iptables_examples.rb
serverspec-0.4.5 spec/support/shared_iptables_examples.rb
serverspec-0.4.4 spec/support/shared_iptables_examples.rb