Sha256: 59499f0e921de530c1a64ab73a4f99f01114896c7d67dd1bc8db02ef15b2c5c4

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

require "spec_helper"

describe Process do
  describe ".exists?" do
    it do
      if linux?
        expect(Process.exists?(Process.pid)).to be_true
        expect(Process.exists?(-1)).to be_false
      else
        expect{ Process.exists?(Process.pid) }.to raise_error(NotImplementedError)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tagen-2.0.2 spec/tagen/core/process_spec.rb
tagen-2.0.1 spec/tagen/core/process_spec.rb
tagen-2.0.0 spec/tagen/core/process_spec.rb