Sha256: a01855e83415fe2377528d4e1bc61bbf7571d136e64e10636c45596badf3a26a

Contents?: true

Size: 334 Bytes

Versions: 11

Compression:

Stored size: 334 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)

shared_examples_for "a platform that provides the child's pid" do
  it "knows the child's pid" do
    Tempfile.open("pid-spec") do |file|
      process = write_pid(file.path).start
      process.wait

      process.pid.should == rewind_and_read(file).chomp.to_i
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/childprocess-0.5.3/spec/pid_behavior.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/childprocess-0.5.3/spec/pid_behavior.rb
childprocess-0.5.3 spec/pid_behavior.rb
childprocess-0.5.2 spec/pid_behavior.rb
childprocess-0.5.1 spec/pid_behavior.rb
childprocess-0.5.0 spec/pid_behavior.rb
childprocess-0.4.2 spec/pid_behavior.rb
childprocess-0.4.1 spec/pid_behavior.rb
childprocess-0.4.1.rc3 spec/pid_behavior.rb
childprocess-0.4.1.rc2 spec/pid_behavior.rb
childprocess-0.4.1.rc1 spec/pid_behavior.rb