Skip to content

Commit 4770b42

Browse files
herwinweregon
authored andcommitted
Update shared specs for Process.fork/Kernel.fork/Kernel#fork
A number of tests called `Process.fork`, so the specs for Kernel were mostly calling the wrong method.
1 parent bbcd077 commit 4770b42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

shared/process/fork.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@
2323
end
2424

2525
it "returns status zero" do
26-
pid = Process.fork { exit! 0 }
26+
pid = @object.fork { exit! 0 }
2727
_, result = Process.wait2(pid)
2828
result.exitstatus.should == 0
2929
end
3030

3131
it "returns status zero" do
32-
pid = Process.fork { exit 0 }
32+
pid = @object.fork { exit 0 }
3333
_, result = Process.wait2(pid)
3434
result.exitstatus.should == 0
3535
end
3636

3737
it "returns status zero" do
38-
pid = Process.fork {}
38+
pid = @object.fork {}
3939
_, result = Process.wait2(pid)
4040
result.exitstatus.should == 0
4141
end
4242

4343
it "returns status non-zero" do
44-
pid = Process.fork { exit! 42 }
44+
pid = @object.fork { exit! 42 }
4545
_, result = Process.wait2(pid)
4646
result.exitstatus.should == 42
4747
end
4848

4949
it "returns status non-zero" do
50-
pid = Process.fork { exit 42 }
50+
pid = @object.fork { exit 42 }
5151
_, result = Process.wait2(pid)
5252
result.exitstatus.should == 42
5353
end

0 commit comments

Comments
 (0)