summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/status/pid_spec.rb
blob: 9965fc3bdfa8b24b62541afa12dd244080b69674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require_relative '../../../spec_helper'

platform_is_not :windows do
  describe "Process::Status#pid" do

    before :each do
      @pid = ruby_exe("print $$").to_i
    end

    it "returns the pid of the process" do
      $?.pid.should == @pid
    end

  end
end