Sha256: 401d95ba75a2381d7ad219e448c91e3adba9959877731fc22fd412b74ffcd412

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::RedHat

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/redhat/port_spec.rb
serverspec-0.6.20 spec/redhat/port_spec.rb
serverspec-0.6.19 spec/redhat/port_spec.rb
serverspec-0.6.18 spec/redhat/port_spec.rb
serverspec-0.6.17 spec/redhat/port_spec.rb