Sha256: bdbd5770b503a9398931c9997bfe20bd10be315b292e9846ffb169d7f1f33112

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Gentoo

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.6.21 spec/gentoo/port_spec.rb
serverspec-0.6.20 spec/gentoo/port_spec.rb
serverspec-0.6.19 spec/gentoo/port_spec.rb
serverspec-0.6.18 spec/gentoo/port_spec.rb
serverspec-0.6.17 spec/gentoo/port_spec.rb