Skip to content

Commit 1c70c17

Browse files
committed
Expand Kernel::system tests.
1 parent 9639048 commit 1c70c17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/kernel.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@
1818

1919
with "#system" do
2020
it "can execute child process" do
21-
# expect(reactor).to receive(:process_wait)
21+
expect(reactor).to receive(:process_wait)
2222

23-
::Kernel.system("true")
23+
result = ::Kernel.system("true")
24+
25+
expect(result).to be == true
2426
expect($?).to be(:success?)
2527
end
2628

2729
it "can fail to execute child process" do
30+
expect(reactor).to receive(:process_wait)
31+
2832
result = ::Kernel.system("does-not-exist")
2933

3034
expect(result).to be == nil

0 commit comments

Comments
 (0)