spec/debian/port_spec.rb in serverspec-0.6.16 vs spec/debian/port_spec.rb in serverspec-0.6.17
- old
+ new
@@ -1,7 +1,12 @@
require 'spec_helper'
include Serverspec::Helper::Debian
-describe 'Serverspec port matchers of Debian family' do
- it_behaves_like 'support port listening matcher', 80
+describe port(80) do
+ it { should be_listening }
+ its(:command) { should eq 'netstat -tunl | grep -- :80\\ ' }
+end
+
+describe port('invalid') do
+ it { should_not be_listening }
end