Sha256: 73f5aec248bebe350ffc3a870bf9067cd5f9d5f3b85f29f939fe75cec71d1229

Contents?: true

Size: 210 Bytes

Versions: 11

Compression:

Stored size: 210 Bytes

Contents

require 'rspec/expectations'

RSpec::Matchers.define :be_a_running_process do
  match do |pid|
    begin
      Process.kill 0, pid
      true
    rescue Errno::EPERM, Errno::ESRCH
      false
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
isolated_server-0.4.12 spec/support/process_matcher.rb
isolated_server-0.4.11 spec/support/process_matcher.rb
isolated_server-0.4.10 spec/support/process_matcher.rb
isolated_server-0.4.9 spec/support/process_matcher.rb
isolated_server-0.4.8 spec/support/process_matcher.rb
isolated_server-0.4.7 spec/support/process_matcher.rb
isolated_server-0.4.6 spec/support/process_matcher.rb
isolated_server-0.4.5 spec/support/process_matcher.rb
isolated_server-0.4.4 spec/support/process_matcher.rb
isolated_server-0.4.3 spec/support/process_matcher.rb
isolated_server-0.4.2 spec/support/process_matcher.rb