From cf18a2e564c5b8887567af1783eaed03763f7869 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sun, 15 Oct 2017 02:05:45 +0200 Subject: [PATCH] feat: add listening test --- spec/bind.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/bind.rb b/spec/bind.rb index 21c069c..b632118 100644 --- a/spec/bind.rb +++ b/spec/bind.rb @@ -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') }