diff options
Diffstat (limited to 'spec/ruby/core/process/waitpid_spec.rb')
| -rw-r--r-- | spec/ruby/core/process/waitpid_spec.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/spec/ruby/core/process/waitpid_spec.rb b/spec/ruby/core/process/waitpid_spec.rb index c95e8d59dd..9b2f49e7cf 100644 --- a/spec/ruby/core/process/waitpid_spec.rb +++ b/spec/ruby/core/process/waitpid_spec.rb @@ -1,15 +1,7 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "Process.waitpid" do - it "needs to be reviewed for spec completeness" - - it "returns nil when the process has not yet completed and WNOHANG is specified" do - pid = spawn("sleep 5") - begin - Process.waitpid(pid, Process::WNOHANG).should == nil - Process.kill("KILL", pid) - ensure - Process.wait(pid) - end + it "is an alias of Process.wait" do + Process.method(:waitpid).should == Process.method(:wait) end end |
