Sha256: b4db7be062987eb8d69652dde5041d51be8bcaa3ae9cd1ce9cf35902ebdb673b

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'process_extensions'

describe ProcessExtensions do
  it 'should tell if a process exists' do
    begin
      pid = fork { sleep }
      Process.should exist(pid)
    ensure
      Process.kill('KILL', pid)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elia-2.4.2.pre spec/lib/process_extensions_spec.rb
elia-2.4.1 spec/lib/process_extensions_spec.rb
elia-2.3.2 spec/lib/process_extensions_spec.rb
elia-1.2.0 spec/lib/process_extensions_spec.rb
elia-1.1.0 spec/lib/process_extensions_spec.rb