Sha256: 71df591194d4ae43f24539350520c7c9d7bb04cca2c924684f56ad30a3aa82b6
Contents?: true
Size: 599 Bytes
Versions: 20
Compression:
Stored size: 599 Bytes
Contents
require 'spec_helper' RSpec.configure do |c| c.os = 'Debian' end describe iptables do it { should have_rule '-P INPUT ACCEPT' } its(:command) { should eq "iptables -S | grep -- -P\\ INPUT\\ ACCEPT" } end describe iptables do it { should_not have_rule 'invalid-rule' } end describe iptables do it { should have_rule('-P INPUT ACCEPT').with_table('mangle').with_chain('INPUT') } its(:command) { should eq "iptables -t mangle -S INPUT | grep -- -P\\ INPUT\\ ACCEPT" } end describe iptables do it { should_not have_rule('invalid-rule').with_table('mangle').with_chain('INPUT') } end
Version data entries
20 entries across 20 versions & 1 rubygems