Sha256: cab0fbb748e9cbd64c99a0c32423aa98beac27a2f2f5104777beecd62caeb8ad

Contents?: true

Size: 226 Bytes

Versions: 5

Compression:

Stored size: 226 Bytes

Contents

RSpec::Matchers.define :be_listening do
  match do |actual|
    if actual.respond_to?(:listening?)
      actual.listening?
    else
      port = actual.gsub(/port\s+/, '')
      backend.check_listening(port)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.5.8 lib/serverspec/matchers/be_listening.rb
serverspec-0.5.7 lib/serverspec/matchers/be_listening.rb
serverspec-0.5.6 lib/serverspec/matchers/be_listening.rb
serverspec-0.5.5 lib/serverspec/matchers/be_listening.rb
serverspec-0.5.4 lib/serverspec/matchers/be_listening.rb