Sha256: 704d9c6c823a98a6862fcc937a45716e8b282ae6dc2d66931c2531769756d595

Contents?: true

Size: 235 Bytes

Versions: 18

Compression:

Stored size: 235 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(example, port)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
serverspec-0.5.3 lib/serverspec/matchers/be_listening.rb
serverspec-0.5.2 lib/serverspec/matchers/be_listening.rb
serverspec-0.5.1 lib/serverspec/matchers/be_listening.rb
serverspec-0.5.0 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.14 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.13 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.12 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.11 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.10 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.9 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.8 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.7 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.6 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.5 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.4 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.3 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.2 lib/serverspec/matchers/be_listening.rb
serverspec-0.4.1 lib/serverspec/matchers/be_listening.rb