Sha256: e85714a7af6cd4be6fda2d6d3bcfc9b135f503b044b37dfadad212393e0b7934
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
require 'spec_helper' include Specinfra::Helper::Cmd set :os, :family => 'windows' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
serverspec-2.0.0.beta14 | spec/type/windows/port_spec.rb |