Skip to content

Commit

Permalink
Add test for non-existant executable.
Browse files Browse the repository at this point in the history
See <#351> for context.
  • Loading branch information
ioquatix committed Nov 5, 2024
1 parent 860140b commit 9639048
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
::Kernel.system("true")
expect($?).to be(:success?)
end

it "can fail to execute child process" do
result = ::Kernel.system("does-not-exist")

expect(result).to be == nil
expect($?).not.to be(:success?)
end
end

with "#`" do
Expand Down

0 comments on commit 9639048

Please sign in to comment.