Sha256: 1949e6338986cc9758bb47749cc03d7ee395089aff1200187937901e2579fcb8

Contents?: true

Size: 497 Bytes

Versions: 5

Compression:

Stored size: 497 Bytes

Contents

require 'spec_helper'

include Specinfra::Helper::RedHat

describe port(80) do
  it { should be_listening }
end

describe port('invalid') do
  it { should_not be_listening }
end

describe port(80) do
  it { should be_listening.with("tcp") }
end

describe port(123) do
  it { should be_listening.with("udp") }
end

describe port(80) do
  it { 
    expect {
      should be_listening.with('not implemented')
    }.to raise_error(ArgumentError, %r/\A`be_listening` matcher doesn\'t support/)
  }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta7 spec/type/port_spec.rb
serverspec-2.0.0.beta6 spec/type/port_spec.rb
serverspec-2.0.0.beta5 spec/type/port_spec.rb
serverspec-2.0.0.beta4 spec/type/port_spec.rb
serverspec-2.0.0.beta3 spec/type/port_spec.rb