Sha256: 462384af3f4a03d20041a4cc0deabc444c4344e6aed56d0c15a2dbf7772cb137

Contents?: true

Size: 338 Bytes

Versions: 67

Compression:

Stored size: 338 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

      expect(process.pid).to eq rewind_and_read(file).chomp.to_i
    end
  end
end

Version data entries

67 entries across 54 versions & 9 rubygems

Version Path
childprocess-5.1.0 spec/pid_behavior.rb
childprocess-5.0.0 spec/pid_behavior.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/childprocess-3.0.0/spec/pid_behavior.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/childprocess-4.1.0/spec/pid_behavior.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/childprocess-3.0.0/spec/pid_behavior.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/childprocess-3.0.0/spec/pid_behavior.rb
childprocess-4.1.0 spec/pid_behavior.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/childprocess-3.0.0/spec/pid_behavior.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/childprocess-3.0.0/spec/pid_behavior.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/childprocess-3.0.0/spec/pid_behavior.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/childprocess-3.0.0/spec/pid_behavior.rb