Sha256: a9f91b33cd23e649709cfd20c3b39e196e9ad9408852f6a58464f80ff9cd5cfd

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

RSpec::Matchers.define :be_running do
  match do |process|
    if subject.class.name == 'Serverspec::Type::Service'
      process.running?(@under)
    else
      process.running?
    end
  end

  chain :under do |under|
    @under = under
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
serverspec-0.14.2 lib/serverspec/matchers/be_running.rb
serverspec-0.14.1 lib/serverspec/matchers/be_running.rb
serverspec-0.14.0 lib/serverspec/matchers/be_running.rb