Skip to content

Commit 5a8c7fe

Browse files
fixup! Add Process.capture?
1 parent 90cf9b0 commit 5a8c7fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/std/process_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ describe Process do
991991
end
992992

993993
it "captures stdout from stdin" do
994-
Process.capture?(to_ary(stdin_to_stdout_command), input: IO::Memory.new("hello")).should eq "hello"
994+
Process.capture?(to_ary(stdin_to_stdout_command), input: IO::Memory.new("hello")).chomp.should eq "hello"
995995
end
996996

997997
it "returns nil on unsuccessful exit" do

0 commit comments

Comments
 (0)