feat: add listening test

This commit is contained in:
Adrien Waksberg 2017-10-15 02:05:45 +02:00
parent 4c897ed635
commit cf18a2e564

View file

@ -32,6 +32,11 @@ describe file('/etc/bind/named.conf.local') do
it { should contain '4.2.2.4' }
end
describe port(53) do
it { should be_listening.with('tcp') }
it { should be_listening.with('udp') }
end
describe command('host hello.test.local 127.0.0.1') do
its(:exit_status) { should eq 0 }
its(:stdout) { should contain('1.2.3.4') }