Sha256: 07e4708e521c2e348992e94ec5ce82cff217d7454457dfa93daf9c8e22086621

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 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.poll_for_exit(10)
      file.rewind

      process.pid.should == file.read.chomp.to_i
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
childprocess-0.2.3 spec/pid_behavior.rb
childprocess-0.2.2 spec/pid_behavior.rb
childprocess-0.2.1 spec/pid_behavior.rb
childprocess-0.2.0 spec/pid_behavior.rb
childprocess-0.1.9 spec/pid_behavior.rb
childprocess-0.1.8 spec/pid_behavior.rb
childprocess-0.1.8.pre spec/pid_behavior.rb