Sha256: 8fe8ba6bfa3828d8faa516e55e21ad055940e0642a06d57452d433223f4a0b2e

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Darwin

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