diff options
Diffstat (limited to 'spec/ruby/core/process/ppid_spec.rb')
| -rw-r--r-- | spec/ruby/core/process/ppid_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/core/process/ppid_spec.rb b/spec/ruby/core/process/ppid_spec.rb new file mode 100644 index 0000000000..47c32a8591 --- /dev/null +++ b/spec/ruby/core/process/ppid_spec.rb @@ -0,0 +1,9 @@ +require_relative '../../spec_helper' + +describe "Process.ppid" do + platform_is_not :windows do + it "returns the process id of the parent of this process" do + ruby_exe("puts Process.ppid").should == "#{Process.pid}\n" + end + end +end |
